Skip to content

Commit 541118d

Browse files
committed
Updated Vagrant bootstrap to restart Postgres after updating the configuration. Also downgraded Ruby to 2.1.0 on Vagrant
1 parent 8e4dd0b commit 541118d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

vagrant/bootstrap.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ echo export EDITOR=vim >> $HOME/.bashrc
88
# Enable accessing Postgres from the host machin
99
echo "listen_addresses = '*'" | tee -a /var/pgsql/data/postgresql.conf
1010
echo host all all 0.0.0.0/0 trust | tee -a /var/pgsql/data/pg_hba.conf
11+
sudo su postgres -c 'pg_ctl restart -D /var/pgsql/data 2>&1 &'
1112
su -c "source /home/vagrant/web/vagrant/user-config.sh" vagrant

vagrant/user-config.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ source "$HOME/.rvm/scripts/rvm"
1414
[[ -s "$rvm_path/hooks/after_cd_bundle" ]] && chmod +x $rvm_path/hooks/after_cd_bundle
1515
rvm requirements
1616
rvm reload
17-
_RUBY_VERSION=ruby-2.1.1
17+
_RUBY_VERSION=ruby-2.1.0
1818
rvm install $_RUBY_VERSION
1919
rvm gemset create coderwall
2020
rvm use $_RUBY_VERSION --default
@@ -23,5 +23,6 @@ cd $HOME/web
2323
gem update --system && gem update bundler
2424
bundle config --global jobs 3
2525
bundle install
26+
bundle exec rake db:create:all
2627
bundle exec rake db:setup
2728
bundle exec rake db:test:prepare

0 commit comments

Comments
 (0)