diff --git a/devops/deploy-macos.sh b/devops/deploy-macos.sh index 32b4b77ff..bf4beccd3 100755 --- a/devops/deploy-macos.sh +++ b/devops/deploy-macos.sh @@ -25,6 +25,33 @@ if [ ${RELEASE} == "central_backend" ]; then mix ecto.migrate fi +cat <$HOME/.env${_SERVICE_SUFFIX} +PHX_HOST=${PHX_HOST} +DATABASE_URL=${DATABASE_URL} +PHX_SERVER=${PHX_SERVER} +SECRET_KEY_BASE=${SECRET_KEY_BASE} +JWT_PRIVATE_KEY_BASE_64=${JWT_PRIVATE_KEY_BASE_64} +PORT=${PORT} +RELEASE_NODE=${RELEASE_NODE} +_SERVICE_SUFFIX=${_SERVICE_SUFFIX} +GATEWAY_URL=${GATEWAY_URL} +METRICS_ENDPOINT_PORT=${METRICS_ENDPOINT_PORT} +OVERRIDE_JWT=${OVERRIDE_JWT} +GOOGLE_CLIENT_ID=${GOOGLE_CLIENT_ID} +BOT_MANAGER_PORT=${BOT_MANAGER_PORT} +BOT_MANAGER_HOST=${BOT_MANAGER_HOST} +CONFIGURATOR_HOST=${CONFIGURATOR_HOST} +CONFIGURATOR_GOOGLE_CLIENT_ID=${CONFIGURATOR_GOOGLE_CLIENT_ID} +CONFIGURATOR_GOOGLE_CLIENT_SECRET=${CONFIGURATOR_GOOGLE_CLIENT_SECRET} +RELEASE=${RELEASE} +TARGET_SERVER=${TARGET_SERVER} +LOADTEST_EUROPE_HOST=${LOADTEST_EUROPE_HOST} +LOADTEST_BRAZIL_HOST=${LOADTEST_BRAZIL_HOST} +LOADTEST_CHILE_HOST=${LOADTEST_CHILE_HOST} +NEWRELIC_APP_NAME=${NEWRELIC_APP_NAME} +NEWRELIC_KEY=${NEWRELIC_KEY} +EOF + export PHX_HOST=$PHX_HOST export DATABASE_URL=$DATABASE_URL export PHX_SERVER=$PHX_SERVER @@ -54,4 +81,6 @@ export NEWRELIC_KEY=$NEWRELIC_KEY rm -rf ${HOME}/arena/mirra_backend mv /tmp/mirra_backend ${HOME}/arena/ +export $(cat .env | xargs) + /Users/lambdaclass/arena/mirra_backend/_build/prod/rel/arena/bin/arena daemon