pip install -r requirements.txt
If you intend to use Gunicorn as a WSGI server (recommended), please check the following documentation
If you intend to locally serve the CSS and JS resources instead of using a CDN, you will need to run the following command: npm --prefix otv/static install
You need to specify OpenTracksViewer the path of the folder containing all your GPX tracks, you can do it either via:
- Setting the
TRACKS_FOLDER_PATH
in theconfig.py
file - Setting
OTV_TRACKS_FOLDER_PATH
environment variable
gunicorn -w 4 'otv.wsgi:create_app()'
flask -A 'otv.wsgi:create_app()' run