Compare commits
2 Commits
1e545f7c39
...
5d2a15f450
Author | SHA1 | Date |
---|---|---|
TEC | 5d2a15f450 | |
TEC | 646dc1ef16 |
|
@ -156,6 +156,7 @@ We also need to ensure that a secrets token exists.
|
|||
#+begin_src sh
|
||||
if [ ! -e "/opt/emacs-survey/config/secrets.jl" ]; then
|
||||
printf "\e[34mCreating genie secrets token\e[m\n"
|
||||
cd /opt/emacs-survey
|
||||
sudo -u genie julia --project=/opt/emacs-survey -e 'using Genie; Genie.Generator.write_secrets_file()'
|
||||
fi
|
||||
#+end_src
|
||||
|
@ -177,6 +178,7 @@ Group=genie
|
|||
ExecStart=/opt/emacs-survey/bin/server
|
||||
WorkingDirectory=/opt/emacs-survey
|
||||
Environment="GENIE_ENV=prod"
|
||||
Environment="JULIA_NUM_THREADS=auto"
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
|
Loading…
Reference in New Issue