Fix vagrant storage.yml config

Tell vagrant to copy the example storage.yml config file into place as per INSTALL.md instructions. Allows the migrations to run.
This commit is contained in:
Harry Wood 2022-02-12 00:13:42 +00:00
parent 2fe84cc2a8
commit 448fd1b3bd

View file

@ -60,6 +60,9 @@ sudo -u vagrant psql -d openstreetmap -f db/functions/functions.sql
if [ ! -f config/database.yml ]; then if [ ! -f config/database.yml ]; then
sudo -u vagrant cp config/example.database.yml config/database.yml sudo -u vagrant cp config/example.database.yml config/database.yml
fi fi
if [ ! -f config/storage.yml ]; then
cp config/example.storage.yml config/storage.yml
fi
touch config/settings.local.yml touch config/settings.local.yml
# migrate the database to the latest version # migrate the database to the latest version
sudo -u vagrant bundle exec rake db:migrate sudo -u vagrant bundle exec rake db:migrate