Skip to content

Commit 6685d05

Browse files
committed
Fixed up the bootstrapping of Vagrant.
1 parent 163ba38 commit 6685d05

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Vagrantfile

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
2121

2222
config.vm.network :private_network, ip: '192.168.237.95' # 192.168.cdr.wl
2323

24+
# Rails
25+
config.vm.network :forwarded_port, guest: 3000, host: 3000
26+
2427
# Postgres
2528
config.vm.network :forwarded_port, guest: 5432, host: 2200
2629
# Redis

vagrant/user-config.sh

+3-6
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ bundle install
2727
# Setup .env
2828
cp .env.example .env -n
2929

30-
sudo su postgres -c 'pg_ctl stop -D /var/pgsql/data 2>&1'
31-
sudo su postgres -c 'pg_ctl restart -D /var/pgsql/data 2>&1 &'
32-
33-
rake db:create:all
34-
rake db:test:prepare
35-
rake db:setup
30+
bundle exec rake db:create:all
31+
bundle exec rake db:setup
32+
bundle exec rake db:test:prepare

0 commit comments

Comments
 (0)