From af52afa4318feadfa3cd1cc4dcdd3d86907f68a4 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Sat, 1 Jan 2022 21:19:28 +0100 Subject: guix_deploy --- .guix_deploy | 5 +++++ README.md | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.guix_deploy b/.guix_deploy index 3b2e097..c7bbb5b 100644 --- a/.guix_deploy +++ b/.guix_deploy @@ -1,3 +1,8 @@ # Deploy script on tux01 +# +# echo Run tests: +# echo python -m unittest discover -v +# echo Run service (single process): +# echo flask run --port=8080 /home/wrk/opt/guix-pull/bin/guix shell -L /home/wrk/guix-bioinformatics/ --expose=$HOME/production/genotype_files/ -C -N -Df guix.scm diff --git a/README.md b/README.md index d3470ee..5669192 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,6 @@ python3 guix shell -C --network --expose=$HOME/genotype_files/ -Df guix.scm ``` - #### Using a Guix profile (or rolling back) Create a new profile with @@ -128,6 +127,8 @@ And for the scalable production version run gunicorn --bind 0.0.0.0:8080 --workers 8 --keep-alive 6000 --max-requests 10 --max-requests-jitter 5 --timeout 1200 wsgi:app ``` +(see also the [.guix_deploy](./.guix_deploy) script) + ## Using python-pip IMPORTANT NOTE: we do not recommend using pip tools, use Guix instead -- cgit v1.2.3