Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script to automatically deploy the site #928

Merged
merged 6 commits into from
Jan 27, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions update-site.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

source "$HOME/.rvm/scripts/rvm"

set -e # halt on error

rvm use --create 2.0.0@vraptor-site
cd vraptor-site
bundle install
npm install
rm -rf output deploy
bundle exec nanoc
grunt
cd ..
git checkout gh-pages
cp -R vraptor-site/deploy/* .
git commit -am 'automatically updating vraptor site'