Skip to content
This repository has been archived by the owner on Mar 8, 2018. It is now read-only.

Commit

Permalink
Update vagrant provisioning script
Browse files Browse the repository at this point in the history
Make some changes to the vagrant provisioning script to make it easier
to install gems with bundler.

The reason for upgrading for trusty is that the bundler package is a bit
broken on precise and gives permissions errors as it's an outdated
version. The trusty version of bundler is more up-to-date and works
nicely out of the box without any hoop jumping.

- Upgrade to a trusty64 base box
- Install the bundler package
  • Loading branch information
chrismytton committed Mar 13, 2015
1 parent 01d426f commit ad9f21b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ $ vagrant ssh -c 'cd /vagrant; npm test'"

Vagrant.configure("2") do |config|
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "hashicorp/precise64"
config.vm.box = "ubuntu/trusty64"

config.vm.network :forwarded_port, guest: 3000, host: POPIT_VAGRANT_PORT

Expand Down
10 changes: 6 additions & 4 deletions config/provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@ sudo DEBIAN_FRONTEND=noninteractive apt-get install -y \
nodejs build-essential \
mongodb-org \
openjdk-6-jre elasticsearch \
git imagemagick graphicsmagick postfix redis-server

bundle install --path vendor/bundle --binstubs vendor/bundle-bin
git imagemagick graphicsmagick postfix redis-server bundler

grep -qG 'cd /vagrant' "$HOME/.bashrc" || echo "cd /vagrant" >> "$HOME/.bashrc"
cd /vagrant

bundle install
make
cp config/development.js-example config/development.js

if [[ ! -f config/development.js ]]; then
cp config/development.js-example config/development.js
fi

0 comments on commit ad9f21b

Please sign in to comment.