From efada54b3e7721805afe8a5d33cce5683a3ee6fa Mon Sep 17 00:00:00 2001 From: Maygician Date: Mon, 5 Oct 2020 18:10:19 +0700 Subject: [PATCH] sh path fixed --- deploy/rel.sh | 4 ++-- deploy/release.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/deploy/rel.sh b/deploy/rel.sh index 866d94b..1f980f1 100644 --- a/deploy/rel.sh +++ b/deploy/rel.sh @@ -12,8 +12,8 @@ echo 'export PORT=443' >> ~/.bashrc fi # and cert paths if [ -z "$GCLP_SSL_KEY_PATH"]; then -echo 'export GCLP_SSL_KEY_PATH=GCLP/lp/priv/cert/selfsigned_key.pem' >> ~/.bashrc +echo 'export GCLP_SSL_KEY_PATH=/GCLP/lp/priv/cert/selfsigned_key.pem' >> ~/.bashrc fi if [ -z "$GCLP_APP_SSL_CERT_PATH"]; then -echo 'export GCLP_APP_SSL_CERT_PATH=GCLP/lp/priv/cert/selfsigned.pem' >> ~/.bashrc +echo 'export GCLP_APP_SSL_CERT_PATH=/GCLP/lp/priv/cert/selfsigned.pem' >> ~/.bashrc fi \ No newline at end of file diff --git a/deploy/release.sh b/deploy/release.sh index 23e0510..b9e0c14 100644 --- a/deploy/release.sh +++ b/deploy/release.sh @@ -7,5 +7,5 @@ npm install --prefix ./assets npm run deploy --prefix ./assets mix phx.digest # once you have something js related MIX_ENV=prod mix release -_build/prod/rel/lp/bin/lp start +sudo _build/prod/rel/lp/bin/lp start # note, that it is running in terminal