diff --git a/docker-compose.yml b/docker-compose.yml index f8abb04..a83afe1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,3 +1,6 @@ +# Orchestrate docker containers to host an instance of the project. +# You *can* use this for development. Don't. + version: '2.0' services: com_goutenoir_apps_travel-footprint-calculator: @@ -13,7 +16,7 @@ services: # - "5000:5000" environment: -# DEBUG: true + STATIC_PATH: /app/flaskr/static # Config for server's nginx-reverse-proxy container LETSENCRYPT_HOST: travel-footprint-calculator.apps.goutenoir.com LETSENCRYPT_EMAIL: antoine@goutenoir.com @@ -27,11 +30,10 @@ services: container_name: com_goutenoir_apps_travel-footprint-calculator_mahcron image: jsonfry/curl-cron environment: - OPTIONS: travel-footprint-calculator.apps.goutenoir.com/compute + # https is important because all you'll get from http is a 301 ;) + OPTIONS: "https://travel-footprint-calculator.apps.goutenoir.com/compute" CRON_SCHEDULE: "*/3 * * * *" -# - OPTIONS=localhost/compute -# - OPTIONS=travel-footprint-calculator.apps.goutenoir.com/compute -# - CRON_SCHEDULE="*/3 * * * *" + # Tip from https://github.com/jwilder/nginx-proxy/issues/1132#issuecomment-392460028 # Create it first: docker network create webproxy diff --git a/flaskr/wsgi.py b/flaskr/wsgi.py index 34e3b28..f95011e 100644 --- a/flaskr/wsgi.py +++ b/flaskr/wsgi.py @@ -12,4 +12,5 @@ from flaskr import create_app app = create_app('flaskr.settings.ProductionConfig') if __name__ == "__main__": + # Pretty sure we're not using that during WSGI. app.run(host='0.0.0.0', port=80) diff --git a/uwsgi.ini b/uwsgi.ini index 2fd1d88..49f28c9 100644 --- a/uwsgi.ini +++ b/uwsgi.ini @@ -1,3 +1,4 @@ [uwsgi] module = flaskr.wsgi -callable = app \ No newline at end of file +callable = app +;check-static = flaskr \ No newline at end of file -- libgit2 0.21.2