Skip to content

mcc-apsis/climate-health-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is an interactive website made using Dash to display the results of a computer-assisted systematic map of the literature on climate change and health outcomes.

After installing the libraries in requirements.txt

pip install -r requirements.txt

you can run the app on a localserver simply by executing

python app.py

production setup

$ gunicorn -b localhost:8000 -w 4 app:server

systemd target

Create /etc/systemd/system/climate-health.service with the following content, then sudo systemctl daemon-reload before you can manage the service with systemd sudo systemctl (start|enable|status|stop) climate-health.

[Unit]
Description=Climate and Health App
After=network.target

[Service]
User=www-data
Environment=FLASK_CONFIG=production
Environment=CHA_HOST=127.0.0.1
Environment=CHA_PORT=8085
Environment=CHA_DEBUG=off
Environment=CHA_BASEURL=/
Environment=CHA_URL_REQUESTS=/climate-health/
Environment=CHA_URL_ROUTES=/climate-health/
Environment=CHA_URL_ASSET=/
Environment=CHA_URL_DIFID=/static/difid/index.html
WorkingDirectory=/var/www/climate-health
ExecStart=/var/www/climate-health/venv/bin/python -m gunicorn -b 127.0.0.1:8085 -w 4 app:server
Restart=always

[Install]
WantedBy=multi-user.target

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published