archivy-docker icon indicating copy to clipboard operation
archivy-docker copied to clipboard

Production example not provided

Open almereyda opened this issue 2 years ago • 0 comments

When launching the archivy container, it complains that its embedded development webserver is configured for production:

archivy_1  | Starting Archivy
archivy_1  | Running archivy...
archivy_1  | [2022-09-24 18:39:42,440] INFO in __init__: OUTPUT_FOLDER: /tmp/click-web
archivy_1  |  * Serving Flask app 'archivy' (lazy loading)
archivy_1  |  * Environment: production
archivy_1  |    WARNING: This is a development server. Do not use it in a production deployment.
archivy_1  |    Use a production WSGI server instead.
archivy_1  |  * Debug mode: off
archivy_1  |  * Running on all addresses.
archivy_1  |    WARNING: This is a development server. Do not use it in a production deployment.
archivy_1  |  * Running on http://10.89.5.2:5000/ (Press CTRL+C to quit)

Exemplary uWSGI setups for Flask with Nginx can be found in:

  • https://www.digitalocean.com/community/tutorials/how-to-build-and-deploy-a-flask-application-using-docker-on-ubuntu-18-04
  • https://www.python4networkengineers.com/posts/python-intermediate/how_to_run_an_app_with_docker/

almereyda avatar Sep 24 '22 18:09 almereyda