Last active
April 6, 2022 11:33
-
-
Save alyssais/f5a9d3e54c47ad1affb6d3f848287afa to your computer and use it in GitHub Desktop.
Use .localhost domains for Rails apps
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
address=/.localhost/127.0.0.1 | |
address=/.test/127.0.0.1 | |
address=/.lvh.me/127.0.0.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen localhost:80; | |
location / { | |
proxy_set_header Host $http_host; | |
proxy_pass http://localhost:3000; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nameserver 127.0.0.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment