Last active
April 13, 2016 08:55
-
-
Save takp/e9f388691955f73f5110 to your computer and use it in GitHub Desktop.
AWS Elastic Beanstalk、Nginx + Passenger (standalone)の環境設定 ref: http://qiita.com/tak_nishida/items/cf30a2d373744943b943
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
$ passenger start --nginx-config-template nginx.conf.erb |
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
# etc/init.d/passenger | |
if [ -d /etc/healthd ]; then | |
STARTOPTS="--nginx-version $EB_NGINX_VERSION --nginx-config-template $EB_SUPPORT_DIR/conf/nginx_config_healthd.erb" | |
else | |
STARTOPTS="--nginx-version $EB_NGINX_VERSION --nginx-config-template $EB_SUPPORT_DIR/conf/nginx_config.erb" | |
fi |
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
files: | |
"/opt/elasticbeanstalk/hooks/appdeploy/post/99_restart_app_server.sh" : | |
mode: "000777" | |
owner: root | |
group: root | |
content: | | |
#!/usr/bin/env bash | |
service passenger restart | |
"/opt/elasticbeanstalk/support/conf/nginx_config_healthd.erb" : | |
mode: "000644" | |
owner: root | |
group: root | |
content: | | |
(nginxの設定内容を記述) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment