-
-
Save fadhlirahim/31998f3424ccce38ca55 to your computer and use it in GitHub Desktop.
AWS EC2 Elastic Beanstalk Instance (Ruby Puma)
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
# /opt/elasticbeanstalk/containerfiles/envvars | |
# Default environment variables for Elastic Beanstalk | |
export EB_ROOT=/opt/elasticbeanstalk | |
export EB_CONFIG_FILE=$EB_ROOT/deploy/configuration/containerconfiguration | |
export EB_CONFIG_SOURCE_BUNDLE=$EB_ROOT/deploy/appsource/source_bundle | |
export EB_CONFIG_APP_BASE=/var/app | |
export EB_CONFIG_APP_SUPPORT=$EB_CONFIG_APP_BASE/containerfiles | |
export EB_CONFIG_APP_ONDECK=$EB_CONFIG_APP_BASE/ondeck | |
export EB_CONFIG_APP_CURRENT=$EB_CONFIG_APP_BASE/current | |
export EB_CONFIG_APP_LOGS=$EB_CONFIG_APP_SUPPORT/logs | |
export EB_CONFIG_APP_ASSETS=$EB_CONFIG_APP_SUPPORT/assets | |
export EB_CONFIG_APP_PIDS=$EB_CONFIG_APP_SUPPORT/pids | |
export EB_CONFIG_APP_USER=webapp | |
export EB_CONFIG_HTTP_PORT=80 | |
# Container specific settings | |
export RAILS_SKIP_ASSET_COMPILATION='false' | |
export RAILS_SKIP_MIGRATIONS='false' | |
export RUBY_VERSION=$(cat /opt/elasticbeanstalk/rubyversion) | |
export BUNDLE_WITHOUT="test:development" | |
export RACK_ENV="production" | |
# Source all generated envvars files | |
prefix=/opt/elasticbeanstalk/containerfiles/envvars.d | |
for e in sysenv appenv; do | |
[ -f $prefix/$e ] && . $prefix/$e | |
done |
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
# /opt/elasticbeanstalk/containerfiles/envvars.d/sysenv | |
export RACK_ENV="production" | |
export RAILS_SKIP_ASSET_COMPILATION="false" | |
export RAILS_SKIP_MIGRATIONS="false" | |
export BUNDLE_WITHOUT="test:development" | |
export AWS_ACCESS_KEY_ID="" | |
export AWS_SECRET_KEY="" | |
export PARAM1="" | |
export PARAM2="" | |
export PARAM3="" | |
export PARAM4="" | |
export PARAM5="" | |
export EB_CONFIG_HTTP_PORT="80" | |
export EB_CONFIG_SYSTEM_LOGPUBLICATIONCONTROL="false" | |
export EB_CONFIG_SYSTEM_AWSEBAGENTID="" | |
export EB_CONFIG_SYSTEM_AWSEBREFERRERID="" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment