]> git.openstreetmap.org Git - rails.git/commitdiff
Fix vagrant storage.yml config
authorHarry Wood <github@harrywood.co.uk>
Sat, 12 Feb 2022 00:13:42 +0000 (00:13 +0000)
committerHarry Wood <github@harrywood.co.uk>
Sat, 12 Feb 2022 00:13:42 +0000 (00:13 +0000)
Tell vagrant to copy the example storage.yml config file into place as per INSTALL.md instructions. Allows the migrations to run.

script/vagrant/setup/provision.sh

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