deploy instructions:
-
- if you're hosting this out of your own locker (
kerberos.scripts.mit.edu) then you want to sign up your personal athena account
- if you're hosting this out of your own locker (
-
- you'll be dropped in
~/web_scripts - every command below should be while sshed into scripts, not into athena
- you'll be dropped in
-
make a folder called
iap-backend, clone this repomkdir iap-backendgit clone https://github.com/cjquines/iap.gitcd iap
-
in the new folder, make a
deploy.shor some other script that updates it, with contents probablycd ~/web_scripts/iap-backend/iap rm -rf ./_events/* python3 scrape.py bundle exec jekyll build -
set
deploy.shto be executable and test itchmod +x deploy.sh./deploy.sh- go to
kerberos.scripts.mit.edu/iap-backend/iap/_site, should be visible - in theory you can now run
./deploy.shto update, and then point people to your url
-
get a better url by making a symlink
cd ~/web_scriptsln -s iap-backend/iap/_site iap- go to
kerberos.scripts.mit.edu/iap, should be visible
-
run
./deploy.shautomatically by editing a crontab- first, give scripts permission to write data
cd ~/web_scripts/iap-backend/iapathrun scripts fssar daemon.scripts write
- then, edit your crontab
crontab -e- add the entry
0 * * 12,1 * /afs/athena.mit.edu/user/k/e/kerberos/web_scripts/iap-backend/iap/deploy.sh - (or whatever absolute path, use
pwdto check) - (or whatever cron schedule expression, this one is "every hour in december and january")
- make sure to test this, this is fragile!
- first, give scripts permission to write data