Skip to content

Commit

Permalink
added a vagrant user since using the postgres one seems to cause trou…
Browse files Browse the repository at this point in the history
…ble in Rails apps
  • Loading branch information
tkowark committed Oct 26, 2015
1 parent 2f78389 commit e6abd9f
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# vi: set ft=ruby :

Vagrant.configure("2") do |config|
#config.vm.box = "ubuntu/trusty64"
#config.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box"
config.vm.box = "ubuntu/trusty32"
config.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-i386-vagrant-disk1.box"
config.vm.box = "ubuntu/trusty64"
config.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box"
#config.vm.box = "ubuntu/trusty32"
#config.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-i386-vagrant-disk1.box"

config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "2048"]
Expand Down Expand Up @@ -47,27 +47,34 @@ Vagrant.configure("2") do |config|
createdb: true,
login: true
},
{
username: "vagrant",
password: "",
superuser: false,
createdb: true,
login: true
},
],
databases: [
{
name: "hpi_swt2_dev",
owner: "postgres",
owner: "vagrant",
template: "template0",
encoding: "UTF-8",
locale: "en_US.UTF-8",
extensions: "hstore"
},
{
name: "hpi_swt2_test",
owner: "postgres",
owner: "vagrant",
template: "template0",
encoding: "UTF-8",
locale: "en_US.UTF-8",
extensions: "hstore"
},
{
name: "hpi_swt2_production",
owner: "postgres",
owner: "vagrant",
template: "template0",
encoding: "UTF-8",
locale: "en_US.UTF-8",
Expand Down

0 comments on commit e6abd9f

Please sign in to comment.