Skip to content

Instantly share code, notes, and snippets.

@dustinfarris
Last active July 15, 2016 01:50
Show Gist options
  • Save dustinfarris/fc4cd20ab48c47c8cc70c06a0fade857 to your computer and use it in GitHub Desktop.
Save dustinfarris/fc4cd20ab48c47c8cc70c06a0fade857 to your computer and use it in GitHub Desktop.
eDeliver config
APP="example"
AUTO_VERSION="git-revision"
BUILD_AT="/tmp/erlang/example/builds"
DELIVER_TO="/var/web"
BUILD_HOST="build.app.example.com"
BUILD_USER="builder"
STAGING_HOSTS="stage.app.example.com"
STAGING_USER="web"
pre_erlang_get_and_update_deps() {
# copy it on the build host to the build directory when building
if [ "$DEPLOY_ENVIRONMENT" = "production" ]; then
local _secret_config_file_on_build_host="/home/builder/_config/prod.secret.exs"
else
local _secret_config_file_on_build_host="/home/builder/_config/stage.secret.exs"
fi
if [ "$TARGET_MIX_ENV" = "prod" ]; then
status "Linking '$_secret_config_file_on_build_host' to build config dir"
__sync_remote "
ln -sfn '$_secret_config_file_on_build_host' '$BUILD_AT/config/prod.secret.exs'
"
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment