Created
February 10, 2017 23:46
-
-
Save danpecher/f15ee923930a96a63c94ecfe44ea64e1 to your computer and use it in GitHub Desktop.
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 3000; | |
server_name app localhost .dev; | |
set $basepath /Users/dan/Code; | |
set $domain $host; | |
if ($domain ~ "^(.*)\.dev$") { | |
set $domain $1; | |
} | |
set $rootpath "${domain}"; | |
# most frameworks | |
if (-d $basepath/$domain/public) { | |
set $rootpath "${domain}/public"; | |
} | |
root $basepath/$rootpath; | |
passenger_enabled on; | |
passenger_ruby /Users/dan/.rvm/wrappers/ruby-2.3.3/ruby; | |
passenger_app_env development; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment