artemis/entrypoint.sh
aquachocomint ef209e7a54 Change current directory
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.
2023-12-18 14:21:08 +00:00

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