Skip to content

Commit

Permalink
Added db auto creation on vagrant up
Browse files Browse the repository at this point in the history
  • Loading branch information
DoRTaL94 committed Apr 27, 2020
1 parent e0e2129 commit 2acd8a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ sudo apt-get install -y postgresql postgresql-contrib
echo "install requirements"
pip3 install -r /vagrant/requirements.txt

echo "configuring database"
sudo -u postgres createdb edison
sudo -u postgres psql -c "ALTER ROLE postgres WITH PASSWORD 'edison';"

export FLASK_ENV=development

echo "running app.py"
Expand Down

0 comments on commit 2acd8a7

Please sign in to comment.