This file contains 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
#!/usr/bin/env bash | |
function echoerr { echo "$@" 1>&2; } | |
function error_exit { echoerr "$1"; exit 1; } | |
if [ -z "${REGION}" ] ; then error_exit "No REGION set"; fi | |
command -v jq >/dev/null 2>&1 || error_exit "'jq' not found" | |
command -v aws >/dev/null 2>&1 || error_exit "'aws' not found" | |
command -v tee >/dev/null 2>&1 || error_exit "'tee' not found" | |
command -v ec2metadata >/dev/null 2>&1 || error_exit "'ec2metadata' not found" |
This file contains 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
# iOS | |
app_identifier "com.myapp.app" # The bundle identifier of your app | |
apple_id "[email protected]" # Your Apple email address | |
team_id "1234ABCD" # Developer Portal Team ID | |
# Android | |
json_key_file "./google-play-api-secret.json" # Path to the json secret file - Follow https://github.com/fastlane/supply#setup to get one | |
package_name "com.myapp.app" # Your Android app package |
This file contains 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_run_supervised_celeryd.sh": | |
mode: "000755" | |
owner: root | |
group: root | |
content: | | |
#!/usr/bin/env bash | |
# Get django environment variables | |
celeryenv=`cat /opt/python/current/env | tr '\n' ',' | sed 's/export //g' | sed 's/%/%%/g' | sed 's/$PATH/%(ENV_PATH)s/g' | sed 's/$PYTHONPATH//g' | sed 's/$LD_LIBRARY_PATH//g'` | |
celeryenv=${celeryenv%?} |
This file contains 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
# This specifies the deployment process on AWS ElasticBeanstalk for a Django app using npm and Postgres. | |
# | |
# The target environment should have access to a Postgres Database through environment variables. | |
# The environment can be setup using `eb create --database.engine=postgres` | |
# The necessary environment variables to access the database will be automatically defined on the | |
# instances of that environment. | |
# | |
# In addition, the target environment should define environment variables (django secret key ...). | |
# They can be manually defined using the AWS ElasticBeanstalk interface on the web. | |
# They can also be specified when creating the environment from command line, for example: |