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
# Setup linux packages | |
option_settings: | |
- option_name: BUNDLE_DISABLE_SHARED_GEMS | |
value: "1" | |
- option_name: BUNDLE_PATH | |
value: "vendor/bundle" | |
packages: | |
yum: | |
curl: [] |
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/pre/101_yarn_packages.sh" : | |
mode: "000775" | |
owner: root | |
group: users | |
content: | | |
#!/usr/bin/env bash | |
app="$(/opt/elasticbeanstalk/bin/get-config container -k app_staging_dir)"; | |
# npm install |
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_app_server.conf": | |
mode: "000644" | |
owner: root | |
group: root | |
content: | | |
# The content of this file is based on the content of /etc/nginx/conf.d/webapp_healthd.conf | |
upstream website_upstream { | |
server unix:///var/run/puma/my_app.sock; | |
} |
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
# Use AWS CLI (Not EB CLI) | |
$aws elasticbeanstalk update-environment --solution-stack-name "64bit Amazon Linux 2017.09 v2.7.2 running Ruby 2.5 (Puma)" --environment-name "website-dev" --region "us-west-2" |
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-stop-tracing: | |
command: yum remove -y xray | |
ignoreErrors: true | |
02-copy-tracing: | |
command: curl https://s3.dualstack.us-east-2.amazonaws.com/aws-xray-assets.us-east-2/xray-daemon/aws-xray-daemon-2.x.rpm -o /home/ec2-user/xray.rpm | |
03-start-tracing: | |
command: yum install -y /home/ec2-user/xray.rpm | |
files: |