Skip to content

Commit

Permalink
fix(env): comment delete env logic
Browse files Browse the repository at this point in the history
  • Loading branch information
anteqkois committed May 26, 2024
1 parent 631dbda commit e0f9523
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions apps/api-gateway/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ COPY --from=builder /app/builder/apps/api-gateway/entry.sh ./dist/apps/api-gatew

ENV NODE_ENV=$NODE_ENV

RUN npm install -g [email protected]

RUN chmod +x ./dist/apps/api-gateway/entry.sh

ENTRYPOINT ["./dist/apps/api-gateway/entry.sh"]
Expand Down
6 changes: 3 additions & 3 deletions apps/api-gateway/entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ node ./dist/apps/api-gateway/main.js &
# Capture the PID of the Node.js application
NODE_PID=$!

sleep 15
# sleep 15

# Clear file
> ./.env
# # Clear file
# > ./.env

# Wait for the Node.js application to finish (if needed)
wait $NODE_PID

0 comments on commit e0f9523

Please sign in to comment.