Skip to content

Commit

Permalink
Piping env into private.pem for auto deploy to dev
Browse files Browse the repository at this point in the history
  • Loading branch information
BuckinghamAJ committed May 20, 2024
1 parent bff9876 commit b9b947a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/copy_certs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ if [ "$NODE_ENV" = "production" ]; then
elif [ "$NODE_ENV" = "staging" ]; then
cp /opt/api/certs/staging/* /opt/api/server/certs/
else
if [- -z "${LOGIN_PRIVATE_KEY}"]; then
echo $LOGIN_PRIVATE_KEY > /opt/api/server/certs/private.pem
fi
cp /opt/api/certs/dev/* /opt/api/server/certs/
fi

Expand Down

0 comments on commit b9b947a

Please sign in to comment.