summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--issues/systems/tux02-production.gmi6
-rw-r--r--topics/starting_gn2_and_gn3.gmi15
2 files changed, 17 insertions, 4 deletions
diff --git a/issues/systems/tux02-production.gmi b/issues/systems/tux02-production.gmi
index 0b698ab..7de911f 100644
--- a/issues/systems/tux02-production.gmi
+++ b/issues/systems/tux02-production.gmi
@@ -26,10 +26,10 @@ We are going to move production to tux02 - tux01 will be the staging machine. Th
* [X] add Genenetwork3 service
env FLASK_APP="main.py" flask run --port=8087
* [X] add proxy
-* [ ] set up databases
-* [ ] set up https and letsencrypt
+* [X] set up databases
+* [X] set up https and letsencrypt
* [X] set up firewalling
-* [ ] set up systemd
+* [X] set up systemd
* [ ] setup logrotate for production log files
* [ ] run git automatically on /etc and backup without passwords
* [ ] add borg backups
diff --git a/topics/starting_gn2_and_gn3.gmi b/topics/starting_gn2_and_gn3.gmi
index 0a28861..d0065e4 100644
--- a/topics/starting_gn2_and_gn3.gmi
+++ b/topics/starting_gn2_and_gn3.gmi
@@ -1,20 +1,33 @@
# How to Start GN2 and GN3
+This document describes how we run GN2 and GN3 on the current production setup.
+
This details how GN2/GN3 production are currently started. It's probably a good idea to create a shell script for starting GN3 like we have for GN2 at some point, since currently environment variables are set manually.
+See also
+
+=> systems/gn-services.gmi
+
# GN3
+GN2 depends on GN3 for REST services and libraries.
+
1. Set PATH/PYTHONPATH/GN2_PROFILE environment variables
Example:
+
+```
export GN2_PROFILE=/home/zas1024/opt/gn-latest-20221206
export PATH=$GN2_PROFILE/bin:$PATH
export PYTHONPATH="$GN2_PROFILE/lib/python3.9/site-packages"
+```
2. Start GN3 from the relevant directory (in this case production
+
+```
env FLASK_DEBUG=1 FLASK_APP="main.py" CORS_ORIGINS="http://gn2-zach.genenetwork.org:*,https://gn2-zach.genenetwork.org:*,http://genenetwork.org:*,https://genenetwork.org:*" flask run --port=8081
+```
# GN2
1. Just run /home/gn2/production/run_production.sh
-