Created
December 1, 2015 10:11
-
-
Save passcod/8b62a962861b67dac6b2 to your computer and use it in GitHub Desktop.
Stylistic suggestion for StackOverflow question 34017416
This file contains 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
File.write("/etc/nginx/sites-available/#{domain}", " | |
server { | |
listen 80 default_server; | |
listen [::]:80 default_server ipv6only=on; | |
root /usr/share/nginx/html; | |
index index.html index.htm; | |
server_name localhost; | |
location / { | |
try_files $uri $uri/ =404; | |
} | |
} | |
server { | |
passenger_ruby /path/to/ruby; | |
rails_env development; | |
listen 80; | |
server_name #{domain}; | |
root /usr/share/nginx/html/#{domain}/public; | |
passenger_enabled on; | |
}" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment