From 4d1d429857020ea563b0525cfeced8038280b8d3 Mon Sep 17 00:00:00 2001 From: Klaus Lungwitz Date: Mon, 26 Aug 2024 19:17:24 -0300 Subject: [PATCH] Run with erl daemon rather than launchd --- devops/deploy-macos.sh | 120 +---------------------------------------- 1 file changed, 2 insertions(+), 118 deletions(-) diff --git a/devops/deploy-macos.sh b/devops/deploy-macos.sh index a5a66e7b7..920cd15bf 100755 --- a/devops/deploy-macos.sh +++ b/devops/deploy-macos.sh @@ -28,121 +28,5 @@ fi rm -rf ${HOME}/arena/mirra_backend mv /tmp/mirra_backend ${HOME}/arena/ -mkdir -p ${HOME}/.config/systemd/user/ - -cat <${HOME}/Library/LaunchAgents/${RELEASE}.plist - - - - - Label - com.lambdaclass.${RELEASE} - - ServiceDescription - Arena - - Program - ${HOME}/arena/mirra_backend/devops/entrypoint-macos.sh - - WorkingDirectory - ${HOME}/arena/mirra_backend - - StandardOutputPath - ${HOME}/arena/arena.log - - StandardErrorPath - ${HOME}/arena/arena.log - - EnvironmentVariables - - 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} - - 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} - - - - RunAtLoad - - - -EOF - -launchctl unload ${HOME}/Library/LaunchAgents/${RELEASE}.plist || true -launchctl load ${HOME}/Library/LaunchAgents/${RELEASE}.plist -launchctl start com.lambdaclass.${RELEASE} +/Users/lambdaclass/arena/mirra_backend/_build/prod/rel/arena/bin/arena stop +/Users/lambdaclass/arena/mirra_backend/_build/prod/rel/arena/bin/arena daemon