Skip to content

Commit

Permalink
fix(core): fixing tools
Browse files Browse the repository at this point in the history
  • Loading branch information
nsfilho committed Mar 6, 2024
1 parent 60852f4 commit 77896c1
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,11 @@ function checkEnv() {

params="$@"
if [ "x$params" = "xwait" ]; then
if [ "x$RABBITMQ_PORT" = "x" ]; then
export RABBITMQ_PORT=5672
fi
if [ "x$RABBITMQ_HOST" = "x" ]; then
echo RABBITMQ_HOST não definido
else
node tools/wait.js $RABBITMQ_HOST $RABBITMQ_PORT
fi
if [ "x$NODE_ENV" = "xproduction" ]; then
checkEnv RABBITMQ_HOST rabbitmq
checkEnv RABBITMQ_PORT 5672
node tools/wait.js $RABBITMQ_HOST $RABBITMQ_PORT

if [ "x$NODE_ENV" = "xproduction" ] || [ "x$NODE_ENV" = "xqa" ]; then
while true; do
date
npm start
Expand Down

0 comments on commit 77896c1

Please sign in to comment.