Compare commits

...

3 Commits

Author SHA1 Message Date
TEC 1e545f7c39
Add faq file to static list 2022-10-23 14:29:26 +08:00
TEC 73582ab946
Set Julia threads to auto 2022-10-23 14:29:26 +08:00
TEC 44c0436f4d
Generate secret at correct path 2022-10-23 14:29:23 +08:00
4 changed files with 6 additions and 0 deletions

View File

@ -2,6 +2,7 @@ emacssurvey.tecosaur.net
@dynamic {
not path /css/*
not path /faq.html
not path /favicon.ico
not path /robots.txt
}

View File

@ -10,6 +10,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

View File

@ -86,6 +86,7 @@ emacssurvey.tecosaur.net
@dynamic {
not path /css/*
not path /faq.html
not path /favicon.ico
not path /robots.txt
}
@ -156,6 +157,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 +179,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

View File

@ -46,6 +46,7 @@ sudo -u genie julia --project=/opt/emacs-survey -e 'using Pkg; Pkg.instantiate()
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