aquachocomint
ef209e7a54
only clicking entrypoint.sh is not working without changing directory on mac environment (I don't know this code is needed for linux). before running this script, we need to change directory (e.g. cd) in advance. this change allows you to start up artemis without changing directory.
13 lines
220 B
Bash
13 lines
220 B
Bash
#!/bin/bash
|
|
cd "$(dirname "$0")"
|
|
|
|
if [[ -z "${CFG_DEV}" ]]; then
|
|
echo Production mode
|
|
python3 index.py
|
|
else
|
|
echo Development mode
|
|
python3 dbutils.py create
|
|
nodemon -w aime --legacy-watch index.py
|
|
fi
|
|
|