Deployment scripts and backup automation for CSSU content hosted on CDF.
First, clone this repository into the home directory of the cssuwww
user on CDF:
git clone [email protected]:cssu/cdf-scripts.git
Initialize the backup
submodule:
cd ~/cdf-scripts/
git submodule init
git submodule update
Then make sure dependencies are installed:
gem install bundler
cd ~/cdf-scripts/
bundle install
cd backup/
bundle install
To update the backup
submodule:
git submodule update --rebase
Several rake
tasks are defined in Rakefile:
rake deploy
: Build the static Jekyll site and deploy it by copying it to/space/data/www/cssu/htdocs/
rake backup
: Back up the contents of/space/data/www/cssu/htdocs/
to S3
Invoke whenever
to update the crontab:
cd ~/cdf-scripts/
bundle exec whenever --update-crontab # update the crontab using config/schedule.rb