Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Commit

Permalink
set a memory limit of 1000MB to restart (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
c-castillo committed Jan 25, 2019
1 parent 2aa66d6 commit 31802b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deploy.sh
Expand Up @@ -14,7 +14,7 @@ if [[ "$CIRCLE_BRANCH" == "develop" ]]; then
if [ ! -f .env.development ]; then
cp .env.development.example .env.development
fi
pm2 restart node
pm2 restart --max-memory-restart 1000M node
fi
if [ "$CIRCLE_BRANCH" == "master" ]; then
git stash
Expand All @@ -30,5 +30,5 @@ if [ "$CIRCLE_BRANCH" == "master" ]; then
if [ ! -f .env.production ]; then
cp .env.production.example .env.production
fi
pm2 restart node
pm2 restart --max-memory-restart 1000M node
fi

0 comments on commit 31802b5

Please sign in to comment.