Created
June 29, 2016 21:15
-
-
Save Lewiscowles1986/c1b0292bb321b910be0d64168c670da0 to your computer and use it in GitHub Desktop.
Alphagov calculators deploy...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt-get update | |
sudo apt-get remove --purge ruby -y | |
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 | |
curl -sSL https://get.rvm.io | bash -s stable | |
export PATH="$PATH:$HOME/.rvm/bin" | |
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.2/install.sh | bash | |
export NVM_DIR="/home/vagrant/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" | |
nvm install v4.2.2 | |
npm install -g phantomjs | |
sudo apt-get install -y memcached libpq5 libpq-dev build-essential git | |
git clone https://github.com/alphagov/govuk-content-schemas | |
git clone https://github.com/alphagov/calculators | |
cd calculators | |
RUBY_VERSION=`cat .ruby-version` | |
rvm install $RUBY_VERSION | |
source "$HOME/.rvm/scripts/rvm" | |
rvm --default use $RUBY_VERSION | |
gem install bundler | |
bundle install | |
bundle exec rake spec | |
./startup.sh & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment