File tree 4 files changed +28
-12
lines changed
4 files changed +28
-12
lines changed Original file line number Diff line number Diff line change 4
4
VAGRANTFILE_API_VERSION = "2"
5
5
6
6
$box = 'coderwall'
7
- $box_url = 'http://cdn.coderwall.com/vagrant/coderwall.box'
7
+ # The box is 1GB. Prepare yourself.
8
+ #$box_url = 'http://cdn.coderwall.com/vagrant/coderwall.box'
9
+ $box_url = 'https://s3.amazonaws.com/coderwall-assets-0/vagrant/coderwall.box'
8
10
$provision = 'vagrant/bootstrap.sh'
9
11
10
12
Vagrant . configure ( VAGRANTFILE_API_VERSION ) do |config |
Original file line number Diff line number Diff line change 1
- default : &default
1
+ development :
2
2
adapter : postgresql
3
+ database : coderwall_development
3
4
encoding : unicode
4
5
host : localhost
5
- password :
6
6
pool : 5
7
- port : <%= ENV['DEV_POSTGRES_PORT'] || 5432 %>
7
+ port : 5432
8
8
username : vagrant
9
9
10
- development :
11
- << : *default
12
- database : coderwall_development
13
-
14
10
test :
15
- << : *default
11
+ adapter : postgresql
16
12
database : coderwall_test
13
+ encoding : unicode
14
+ host : localhost
15
+ pool : 5
16
+ port : 5432
17
+ username : vagrant
18
+
19
+ production :
20
+ adapter : postgresql
21
+ database : coderwall_production
22
+ encoding : unicode
23
+ host : localhost
24
+ pool : 5
25
+ port : 5432
26
+ username : vagrant
Original file line number Diff line number Diff line change @@ -8,5 +8,6 @@ echo export EDITOR=vim >> $HOME/.bashrc
8
8
# Enable accessing Postgres from the host machin
9
9
echo " listen_addresses = '*'" | tee -a /var/pgsql/data/postgresql.conf
10
10
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 stop -D /var/pgsql/data 2>&1'
11
12
sudo su postgres -c ' pg_ctl restart -D /var/pgsql/data 2>&1 &'
12
13
su -c " source /home/vagrant/web/vagrant/user-config.sh" vagrant
Original file line number Diff line number Diff line change @@ -27,6 +27,9 @@ bundle install
27
27
# Setup .env
28
28
cp .env.example .env -n
29
29
30
- foreman run rake db:create:all
31
- foreman run rake db:setup
32
- foreman run rake db:test:prepare
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
You can’t perform that action at this time.
0 commit comments