Last active
April 18, 2018 07:15
-
-
Save mrluanma/8415708 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
| -- my_app.rockspec | |
| dependencies = { | |
| "https://raw.github.com/leafo/heroku-openresty/master/heroku-openresty-dev-1.rockspec" | |
| } |
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
| worker_processes auto; | |
| error_log logs/error.log; | |
| daemon off; | |
| events { | |
| use epoll; | |
| worker_connections 1024; | |
| } | |
| http { | |
| server { | |
| listen ${{PORT}}; | |
| location / { | |
| default_type text/html; | |
| content_by_lua ' | |
| ngx.say("<p>hello, world</p>") | |
| '; | |
| } | |
| } | |
| } |
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
| web: start_nginx.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment