diff options
Diffstat (limited to 'script/bootstrap-vagrant-user.sh')
| -rw-r--r-- | script/bootstrap-vagrant-user.sh | 15 |
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 |
