From: Tom Hughes Date: Sun, 13 Feb 2022 17:39:15 +0000 (+0000) Subject: Merge remote-tracking branch 'upstream/pull/3455' X-Git-Tag: live~2312 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/9da90af1b5ac13b061506cd12f66fc1e6a316301?hp=1714e2f02dac45b87d35cecc0633379e70e38fbb Merge remote-tracking branch 'upstream/pull/3455' --- diff --git a/INSTALL.md b/INSTALL.md index 1faf4bf22..68b0d120e 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -90,7 +90,7 @@ Installing other dependencies: * Install Homebrew from https://brew.sh/ * Install the latest version of Ruby: `brew install ruby` -* Install other dependencies: `brew install imagemagick libxml2 gd yarn pngcrush optipng pngquant jhead jpegoptim gifsicle svgo` +* Install other dependencies: `brew install imagemagick libxml2 gd yarn pngcrush optipng pngquant jhead jpegoptim gifsicle svgo advancecomp` * Install Bundler: `gem install bundler` (you might need to `sudo gem install bundler` if you get an error about permissions - or see note below about [developer Ruby setup](#rbenv)) You will need to tell `bundler` that `libxml2` is installed in a Homebrew location. If it uses the system-installed one then you will get errors installing the `libxml-ruby` gem later on. @@ -102,8 +102,7 @@ bundle config build.libxml-ruby --with-xml2-config=/usr/local/opt/libxml2/bin/xm If you want to run the tests, you need `geckodriver` as well: ``` -brew tap homebrew/cask -brew cask install geckodriver +brew install geckodriver ``` Note that OS X does not have a /home directory by default, so if you are using the GPX functions, you will need to change the directories specified in config/application.yml. diff --git a/script/vagrant/setup/provision.sh b/script/vagrant/setup/provision.sh index 680c17bc8..6d7e51d6a 100644 --- a/script/vagrant/setup/provision.sh +++ b/script/vagrant/setup/provision.sh @@ -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