summaryrefslogtreecommitdiff
path: root/script/bootstrap-vagrant-user.sh
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2014-10-31 12:02:29 -0600
committermo khan <mo@mokhan.ca>2014-10-31 12:02:29 -0600
commit984d9852da21908beedf47bcee5cd1237a55a01d (patch)
tree49929d0dabd62bfbfe90cb759d0505a13f386e2c /script/bootstrap-vagrant-user.sh
parent1d3d0b47dc6a97c92e9832de9ea33a96bed45436 (diff)
install missing packages and create vagrant db.
Diffstat (limited to 'script/bootstrap-vagrant-user.sh')
-rw-r--r--script/bootstrap-vagrant-user.sh15
1 files changed, 13 insertions, 2 deletions
diff --git a/script/bootstrap-vagrant-user.sh b/script/bootstrap-vagrant-user.sh
index d517bd83..b74d2423 100644
--- a/script/bootstrap-vagrant-user.sh
+++ b/script/bootstrap-vagrant-user.sh
@@ -6,7 +6,18 @@ git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-bu
git clone https://github.com/tpope/rbenv-ctags.git ~/.rbenv/plugins/rbenv-ctags
git clone https://github.com/rkh/rbenv-update.git ~/plugins/rbenv-update
git clone https://github.com/sstephenson/rbenv-gem-rehash.git ~/.rbenv/plugins/rbenv-gem-rehash
+rbenv update
rbenv install 2.1.4
-gem install bundler
+rbenv global 2.1.4
+gem install bundler --no-ri --no-rdoc
+rbenv rehash
cd /vagrant
-bundle install
+bundle install -j 4
+rbenv rehash
+if [ ! -f /vagrant/config/database.yml ]; then
+ ln -s config/database.yml.vagrant config/database.yml
+fi
+if [ ! -f /vagrant/.env ]; then
+ ln -s .env.example .env
+fi
+bundle exec rake db:create db:migrate db:seed