Compare commits
3 Commits
5d2a15f450
...
1e545f7c39
Author | SHA1 | Date |
---|---|---|
TEC | 1e545f7c39 | |
TEC | 73582ab946 | |
TEC | 44c0436f4d |
|
@ -2,6 +2,7 @@ emacssurvey.tecosaur.net
|
||||||
|
|
||||||
@dynamic {
|
@dynamic {
|
||||||
not path /css/*
|
not path /css/*
|
||||||
|
not path /faq.html
|
||||||
not path /favicon.ico
|
not path /favicon.ico
|
||||||
not path /robots.txt
|
not path /robots.txt
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,6 +10,7 @@ Group=genie
|
||||||
ExecStart=/opt/emacs-survey/bin/server
|
ExecStart=/opt/emacs-survey/bin/server
|
||||||
WorkingDirectory=/opt/emacs-survey
|
WorkingDirectory=/opt/emacs-survey
|
||||||
Environment="GENIE_ENV=prod"
|
Environment="GENIE_ENV=prod"
|
||||||
|
Environment="JULIA_NUM_THREADS=auto"
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
@ -86,6 +86,7 @@ emacssurvey.tecosaur.net
|
||||||
|
|
||||||
@dynamic {
|
@dynamic {
|
||||||
not path /css/*
|
not path /css/*
|
||||||
|
not path /faq.html
|
||||||
not path /favicon.ico
|
not path /favicon.ico
|
||||||
not path /robots.txt
|
not path /robots.txt
|
||||||
}
|
}
|
||||||
|
@ -156,6 +157,7 @@ We also need to ensure that a secrets token exists.
|
||||||
#+begin_src sh
|
#+begin_src sh
|
||||||
if [ ! -e "/opt/emacs-survey/config/secrets.jl" ]; then
|
if [ ! -e "/opt/emacs-survey/config/secrets.jl" ]; then
|
||||||
printf "\e[34mCreating genie secrets token\e[m\n"
|
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()'
|
sudo -u genie julia --project=/opt/emacs-survey -e 'using Genie; Genie.Generator.write_secrets_file()'
|
||||||
fi
|
fi
|
||||||
#+end_src
|
#+end_src
|
||||||
|
@ -177,6 +179,7 @@ Group=genie
|
||||||
ExecStart=/opt/emacs-survey/bin/server
|
ExecStart=/opt/emacs-survey/bin/server
|
||||||
WorkingDirectory=/opt/emacs-survey
|
WorkingDirectory=/opt/emacs-survey
|
||||||
Environment="GENIE_ENV=prod"
|
Environment="GENIE_ENV=prod"
|
||||||
|
Environment="JULIA_NUM_THREADS=auto"
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
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
|
if [ ! -e "/opt/emacs-survey/config/secrets.jl" ]; then
|
||||||
printf "\e[34mCreating genie secrets token\e[m\n"
|
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()'
|
sudo -u genie julia --project=/opt/emacs-survey -e 'using Genie; Genie.Generator.write_secrets_file()'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue