aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xrun_genecup.sh6
-rw-r--r--shepherd/init.d/genecup.scm7
2 files changed, 10 insertions, 3 deletions
diff --git a/run_genecup.sh b/run_genecup.sh
index bfe90de..12f2169 100755
--- a/run_genecup.sh
+++ b/run_genecup.sh
@@ -1,2 +1,6 @@
#!/bin/sh
-$(/home/shepherd/guix-profiles/genecup/bin/guix system container -L /home/shepherd/guix-past/modules/ -L /home/shepherd/guix-bioinformatics/ /home/shepherd/guix-bioinformatics/gn/services/genecup-container.scm --network --share=/export2/PubMed=/export2/PubMed --share=/export/ratspub=/export/ratspub)
+cd $(/home/shepherd/guix-profiles/genecup/bin/guix build -L /home/shepherd/guix-past/modules -L /home/shepherd/guix-bioinformatics genecup-with-tensorflow-native)
+export EDIRECT_PUBMED_MASTER=/export2/PubMed
+export PERL_LWP_SSL_CA_FILE=/etc/ssl/certs/ca-certificates.crt
+export TMPDIR=/export/ratspub/tmp
+/home/shepherd/guix-profiles/genecup/bin/guix environment -L /home/shepherd/guix-past/modules -L /home/shepherd/guix-bioinformatics --ad-hoc genecup-with-tensorflow-native -- ./server.py
diff --git a/shepherd/init.d/genecup.scm b/shepherd/init.d/genecup.scm
index 9d27529..36b6145 100644
--- a/shepherd/init.d/genecup.scm
+++ b/shepherd/init.d/genecup.scm
@@ -4,10 +4,13 @@
#:docstring "Run the genecup.org web server"
#:start (make-forkexec-constructor
'("/home/shepherd/run_genecup.sh")
+ #:environment-variables
+ (list "EDIRECT_PUBMED_MASTER=/export2/PubMed"
+ "NLTK_DATA=/home/hchen/nltk_data"
+ "PERL_LWP_SSL_CA_FILE=/etc/ssl/certs/ca-certificates.crt"
+ "TMPDIR=/export/ratspub/tmp")
#:log-file "/home/shepherd/logs/genecup.log")
#:stop (make-kill-destructor)
- ;; currently running in a screen session
- #:auto-start? #f
#:respawn? #t))
(register-services genecup)