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-backend
git clone https://github.com/cjquines/iap.git
cd iap
-
in the new folder, make a
deploy.sh
or 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.sh
to 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.sh
to update, and then point people to your url
-
get a better url by making a symlink
cd ~/web_scripts
ln -s iap-backend/iap/_site iap
- go to
kerberos.scripts.mit.edu/iap
, should be visible
-
run
./deploy.sh
automatically by editing a crontab- first, give scripts permission to write data
cd ~/web_scripts/iap-backend/iap
athrun 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
pwd
to 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