Skip to content

Instantly share code, notes, and snippets.

@takp
Last active April 13, 2016 08:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takp/e9f388691955f73f5110 to your computer and use it in GitHub Desktop.
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
$ passenger start --nginx-config-template nginx.conf.erb
# 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
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