18 lines
354 B
Bash
18 lines
354 B
Bash
#!/bin/sh
|
|
set -eu
|
|
|
|
cd /app
|
|
|
|
sh tools/init_runtime_data.sh
|
|
|
|
python3 tools/device_mapper.py build
|
|
python3 tools/export_mysql_seed.py
|
|
|
|
if [ "${MYSQL_AUTO_LOAD:-0}" = "1" ]; then
|
|
python3 tools/load_mysql_seed.py
|
|
else
|
|
echo "Skipping MySQL load because MYSQL_AUTO_LOAD=${MYSQL_AUTO_LOAD:-0}"
|
|
fi
|
|
|
|
exec python3 tools/web_server.py --host 0.0.0.0 --port 8123
|