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
Resources: | |
AWSEBAutoScalingGroup: | |
Metadata: | |
AWS::CloudFormation::Authentication: | |
S3Auth: | |
type: "s3" | |
buckets: ["your-bucket-name"] | |
roleName: | |
"Fn::GetOptionSetting": | |
Namespace: "aws:autoscaling:launchconfiguration" |
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
commands: | |
01_get_nginx_conf_file: | |
command: aws s3 cp s3://your-bucket-name/shared_config/an_nginx_http.conf /home/ec2-user | |
container_commands: | |
01_move_nginx_conf_file: | |
command: mv -f /home/ec2-user/an_nginx_http.conf /etc/nginx/conf.d/an_nginx_http.conf | |
02_reload_nginx: | |
command: "sudo service nginx reload" |
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
option_settings: | |
aws:elasticbeanstalk:application:environment: | |
BUNDLE_WITHOUT: test | |
RACK_ENV: development | |
RAILS_ENV: development | |
RAILS_SKIP_ASSET_COMPILATION: true | |
RAILS_SKIP_MIGRATIONS: true | |
LOGGING: debug | |
# Run shell commands during a deployment |
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
container_commands: | |
01_db_seed: | |
command: rake db:seed |
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: | |
# Files in the location /opt/elasticbeanstalk/hooks/appdeploy/pre/ | |
# are executed before the app is deployed and are executed in alphabetical order. | |
"/opt/elasticbeanstalk/hooks/appdeploy/pre/13_db_seed.sh": | |
mode: "000755" | |
owner: root | |
group: root | |
content: | | |
# The content of this file is based on the content of /opt/elasticbeanstalk/hooks/appdeploy/pre/12_db_migration.sh |
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: | |
"/etc/nginx/conf.d/01_proxy.conf": | |
mode: "000644" | |
owner: root | |
group: root | |
content: | | |
client_max_body_size 10M; | |
"/etc/nginx/conf.d/02_app_server.conf": | |
mode: "000644" |
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
upstream my_app { | |
server unix:///var/run/puma/my_app.sock; | |
} | |
log_format healthd '$msec"$uri"' | |
'$status"$request_time"$upstream_response_time"' | |
'$http_x_forwarded_for'; | |
server { | |
listen 80; |
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: | |
"/etc/nginx/conf.d/01_proxy.conf": | |
mode: "000644" | |
owner: root | |
group: root | |
content: | | |
client_max_body_size 10M; | |
container_commands: | |
01_reload_nginx: |
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: | |
"/etc/nginx/conf.d/01_proxy.conf": | |
mode: "000644" | |
owner: root | |
group: root | |
content: | | |
client_max_body_size 10M; |
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
user nginx; | |
worker_processes auto; | |
error_log /var/log/nginx/error.log; | |
pid /var/run/nginx.pid; | |
# Load dynamic modules. See /usr/share/nginx/README.fedora. | |
include /usr/share/nginx/modules/*.conf; | |
events { | |
worker_connections 1024; |