Compare commits
3 Commits
5d2a15f450
...
1e545f7c39
Author | SHA1 | Date |
---|---|---|
TEC | 1e545f7c39 | |
TEC | 73582ab946 | |
TEC | 44c0436f4d |
|
@ -2,6 +2,7 @@ emacssurvey.tecosaur.net
|
|||
|
||||
@dynamic {
|
||||
not path /css/*
|
||||
not path /faq.html
|
||||
not path /favicon.ico
|
||||
not path /robots.txt
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
1
setup.sh
1
setup.sh
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue