- copy
config.sampletoconfigand edit file
- Create user and database
- Enable postgis
- Execute the create_db.sql
psql -c "CREATE USER simple_tracking LOGIN;"
psql -c "CREATE DATABASE simple_tracking OWNER = simple_tracking;"
export PGDATABASE=simple_tracking
psql -c "CREATE EXTENSION postgis;"
psql -f create_db.sql- Download css and javascript
- Update and compile translations
cd webapp
./download_js.sh
./translate.sh- this is for development
cd webapp
./start.sh- Call webbrowser: http://127.0.0.1:5000
- Build image:
docker build --tag simple_tracking .- Test image using the config
docker run --rm --name tracking_test -ti --env-file=config -p5000:5000 simple_tracking- webbrowser: http://127.0.0.1:5000
- Deploy docker image with management you like or run it in deamon mode