-
-
Save freiden/e752b6251e9aae7dc06b386aa8389f23 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