<p>I did the following changes to the provision.sh script, and the server seems to start up at least now. Unfortunately, I have no idea, if this is the right way to do it, ymmv.</p>

<pre><code>diff --git a/script/vagrant/setup/provision.sh b/script/vagrant/setup/provision.sh
index 5699b53..769f0e8 100644
--- a/script/vagrant/setup/provision.sh
+++ b/script/vagrant/setup/provision.sh
@@ -17,11 +17,13 @@ apt-get install -y ruby2.0 libruby2.0 ruby2.0-dev \
                      libmagickwand-dev libxml2-dev libxslt1-dev nodejs \
                      apache2 apache2-threaded-dev build-essential git-core \
                      postgresql postgresql-contrib libpq-dev postgresql-server-dev-all \
-                     libsasl2-dev imagemagick
+                     libsasl2-dev imagemagick rbenv
 gem2.0 install bundler

 ## install the bundle necessary for openstreetmap-website
 pushd /srv/openstreetmap-website
+#
+rbenv rehash
 # do bundle install as a convenience
 sudo -u vagrant -H bundle install
 # create user and database for openstreetmap-website
@@ -49,5 +51,5 @@ if [ ! -f config/application.yml ]; then
                sudo -u vagrant cp config/example.application.yml config/application.yml
 fi
 # migrate the database to the latest version
-sudo -u vagrant rake db:migrate
+sudo -u vagrant bundle exec rake db:migrate
 popd


</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly or <a href="https://github.com/openstreetmap/openstreetmap-website/issues/1193#issuecomment-201859865">view it on GitHub</a><img alt="" height="1" src="https://github.com/notifications/beacon/ABWnLa6IS-rzQUibINJmCZ6gk0_C08FXks5pxVD9gaJpZM4H5Na5.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/openstreetmap/openstreetmap-website/issues/1193#issuecomment-201859865"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>