heissepreise/docker/main.sh
Werner Robitza 4e739b98e5 improve node environment handling and CLI
Add proper CLI flags to avoid having positional CLI args. Allow setting options via ENV for other deployments.

Improve README

Split up node environment so that dev/prod can be handled differently in the future.
2023-06-07 14:14:26 +02:00

11 lines
173 B
Bash
Executable File

#!/bin/bash
set -e
npm install
if [ -z "$DEV" ] || [ "$NODE_ENV" = "production" ]; then
echo "Running in prod."
npm run start
else
echo "Running in dev."
npm run dev
fi