summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2022-12-08 10:36:02 -0600
committerGitHub2022-12-08 10:36:02 -0600
commita0900716bf59bb9db06f8847b24bcc06983ddea5 (patch)
tree78dccbbc4045a19628a6527700d148466670599a
parentb7c5f2aed32a7edc19fbe716f3415e86c39705af (diff)
downloadgn-gemtext-a0900716bf59bb9db06f8847b24bcc06983ddea5.tar.gz
Create starting_gn2_and_gn3.gmi
-rw-r--r--topics/starting_gn2_and_gn3.gmi20
1 files changed, 20 insertions, 0 deletions
diff --git a/topics/starting_gn2_and_gn3.gmi b/topics/starting_gn2_and_gn3.gmi
new file mode 100644
index 0000000..0a28861
--- /dev/null
+++ b/topics/starting_gn2_and_gn3.gmi
@@ -0,0 +1,20 @@
+# How to Start GN2 and GN3
+
+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.
+
+# GN3
+
+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
+