Add some infra for deployment

This commit is contained in:
Radon Rosborough 2020-06-10 17:34:36 -06:00
parent 7ea28d4ff3
commit 73d05cb61b
3 changed files with 14 additions and 0 deletions

3
scripts/certbot-post.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
systemctl start riju

3
scripts/certbot-pre.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
systemctl stop riju

8
scripts/riju.service Normal file
View File

@ -0,0 +1,8 @@
[Unit]
Description=Riju online coding sandbox
[Service]
ExecStart=docker run -p 0.0.0.0:6119 riju
[Install]
WantedBy=multi-user.target