mirror of
https://github.com/badlogic/heissepreise.git
synced 2024-09-22 00:00:59 +02:00
4e739b98e5
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.
11 lines
173 B
Bash
Executable File
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 |