[openstreetmap/openstreetmap-website] Vagrant installation script is out of date (#2343)

Tim Waters notifications at github.com
Fri Aug 9 17:12:04 UTC 2019


I also gave it a go, in case others are trying,  I also edited the end of the provision.sh script to copy the storage config file (if it's needed) and use also use "bundle exec" to call the rake tasks

```
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
popd
```

Running the tests, there were errors related to

`failed to detect theversion of the executable at '/usr/bin/phantomjs' `

This was solved by changing the environment variable from "phantom" to "offscreen" in the application_system_testcase.rb

`ENV["QT_QPA_PLATFORM"] = "offscreen" if IO.popen(["phantomjs", "--version"], :err => :close).read.empty?`

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/2343#issuecomment-519995283
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20190809/6ec97ac3/attachment.html>


More information about the rails-dev mailing list