Skip to content
Snippets Groups Projects
Unverified Commit 220b7812 authored by Fredrik Jonsson's avatar Fredrik Jonsson Committed by GitHub
Browse files

Merge pull request #630 from OpenTechFund/update-psql-to-match-heroku

update the vagrant box and psql so that we are similar to heroku
parents 52d9c47c 2c4b8220
No related branches found
No related tags found
Loading
......@@ -21,8 +21,8 @@ Vagrant.configure(2) do |config|
# Every Vagrant development environment requires a box. You can search for
# boxes at https://atlas.hashicorp.com/search.
config.vm.box = "torchbox/wagtail-jessie64"
config.vm.box_version = "~> 2.0"
config.vm.box = "torchbox/wagtail-stretch64"
config.vm.box_version = "~> 1.0.0"
# Disable automatic box update checking. If you disable this, then
# boxes will only be checked for updates when the user runs
......
......@@ -9,6 +9,11 @@ VIRTUALENV_DIR=/home/vagrant/.virtualenvs/$PROJECT_NAME
PYTHON=$VIRTUALENV_DIR/bin/python
PIP=$VIRTUALENV_DIR/bin/pip
# Upgrade to postgres 10
apt-get update -y
apt-get remove -y --purge postgresql-*
apt-get install -y postgresql-10 postgresql-client-10 postgresql-contrib-10
su - postgres -c "createuser -s vagrant"
# Create database
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment