bin/run_instance.sh

13 lines
173 B
Bash
Raw Normal View History

2023-03-04 03:39:13 +01:00
#!/bin/bash
if ! [ -f .env ]; then
echo -e '\033[31m.env not found.'
exit -1
fi
. .env
if [ "$APP_DEBUG" == "true" ]; then
npm run dev
else
npm run prod
fi