Website hosting the NESP2 webmap
After cloning this repository, checkout the dev
branch
git checkout dev
Create a virtual environment (with python3), then
pip3 install -r app/requirements.txt
Pull the latest changes from the maps repository
python3 app/setup_maps.py
Start the app with
python3 index.py
app/instance/config.py
file with the line SECRET_KEY = '<your secret key>'
.
If needed, you can generate a key with python -c 'import os; print(os.urandom(16))'
)sudo docker build -t nesp2_website .
you can use the --build-arg
command to provide the postgresql login infos, or store
it in a file and run sudo docker build -t nesp2_website $(<docker-inputs.txt) .
sudo docker run -rm -p 5000:5000 nesp2_website
ctrl + c
in the terminal from point 2.
.env
file (docker-compose will look into it)sudo docker-compose up -d --build
0.0.0.0:5000
or localhost:5000
sudo docker-compose down
In case something goes wrong, use sudo docker logs nesp2_website
to check the logs