Compare commits

...

2 Commits

Author SHA1 Message Date
TEC 5d2a15f450
Set Julia threads to auto 2022-10-18 21:56:27 +08:00
TEC 646dc1ef16
Generate secret at correct path 2022-10-17 22:00:52 +08:00
1 changed files with 2 additions and 0 deletions

View File

@ -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