Skip to content

Commit

Permalink
fix: start.sh script, fix check for redis
Browse files Browse the repository at this point in the history
  • Loading branch information
mvayngrib committed Dec 19, 2017
1 parent 0bced17 commit 80b437d
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/scripts/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,12 @@ if [ "$REDIS_CLI" == "" ] || [ "$REDIS_SERVER" == "" ]; then
exit 1
fi

PONG=$(redis-cli ping)
if [ "$PONG" != "PONG" ]; then
echo 'please start redis first (run: redis-server)'
exit 1
fi
PONG=$(redis-cli ping) || { echo 'please start redis first (run: redis-server)'; }

npm run localstack:start
sleep 5
npm run gen:localresources
DEBUG=λ*,*tradle* serverless offline start
if [ ! -z "$PONG" ]
then
npm run localstack:start
sleep 5
npm run gen:localresources
DEBUG=λ*,*tradle* serverless offline start
fi

0 comments on commit 80b437d

Please sign in to comment.