aboutsummaryrefslogtreecommitdiffstats
path: root/Vagrantfile
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2018-01-11 19:38:03 +0100
committerHarald Eilertsen <haraldei@anduin.net>2018-01-11 19:38:03 +0100
commit87184cc0fc72756a111b83d44a87c27594921467 (patch)
tree8e70b393bd17cee7dce98a0be8b02506955461f1 /Vagrantfile
parent0bc5821a2c6c5284dd246dc6f6e3afe89ed82475 (diff)
downloadrocket-blog-87184cc0fc72756a111b83d44a87c27594921467.tar.gz
rocket-blog-87184cc0fc72756a111b83d44a87c27594921467.tar.bz2
rocket-blog-87184cc0fc72756a111b83d44a87c27594921467.zip
Vagrantfile: Need to start postgres before creating db user.
Diffstat (limited to 'Vagrantfile')
-rw-r--r--Vagrantfile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Vagrantfile b/Vagrantfile
index 25e3888..144dc82 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -67,13 +67,13 @@ Vagrant.configure("2") do |config|
pacman -Suyq --noconfirm rustup postgresql gcc make
su - postgres -c "initdb --locale en_US.UTF-8 -D '/var/lib/postgres/data'"
+ systemctl enable postgresql
+ systemctl start postgresql
+
su - postgres -c "createuser -d vagrant"
- su - vagrant -c "rustup install nightly"
- su - vagrant -c "rustup default nightly"
- su - vagrant -c "cargo install diesel_cli --no-default-features --features postgres"
+ su - vagrant -c "rustup default nightly-2017-12-21"
+ su - vagrant -c "cargo install -q diesel_cli --no-default-features --features postgres"
su - vagrant -c 'echo "PATH=$HOME/.cargo/bin:$PATH" >> ~/.bash_profile'
- systemctl enable postgresql
- systemctl start postgresql
SHELL
end