aboutsummaryrefslogtreecommitdiffstats
path: root/docs/installing/manual_install.md
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2014-08-21 13:02:53 +0100
committerGareth Rees <gareth@mysociety.org>2014-08-21 17:38:23 +0100
commit977d4cedfe62fdb2a726a1266233e4042c320900 (patch)
treebb69f9d3e158b3bbd66652d0bb6252b6cc25eaf0 /docs/installing/manual_install.md
parent66381dcc0080f816eebd64b525c42d664199089a (diff)
Clearer instructions for production test prep.
Diffstat (limited to 'docs/installing/manual_install.md')
-rw-r--r--docs/installing/manual_install.md10
1 files changed, 6 insertions, 4 deletions
diff --git a/docs/installing/manual_install.md b/docs/installing/manual_install.md
index 33fc48ff2..44183e64e 100644
--- a/docs/installing/manual_install.md
+++ b/docs/installing/manual_install.md
@@ -819,7 +819,7 @@ Check out the [next steps]({{ site.baseurl }}docs/installing/next_steps/).
* **Run the Tests**
- Make sure everything looks OK:
+ Make sure everything looks OK. As the alaveteli user, run:
bundle exec rake spec
@@ -830,12 +830,14 @@ Check out the [next steps]({{ site.baseurl }}docs/installing/next_steps/).
<div class="attention-box">
- <strong>Note:</strong> If you have setup your install of Alaveteli for production, you will need to temporarily remove the file <code>config/rails_env.rb</code>, which is used to force the rails environment to production, and edit your <code>.bundle/config</code> file to remove the <code>BUNDLE_WITHOUT</code> line that excludes development dependencies. After you have done this, as the alaveteli user, run <code>bundle install</code>. You should then be able to run the tests. Don't forget to restore <code>config/rails_env.rb</code> when you're done. You will probably see some errors from cron jobs in the meantime, as they'll be running in development mode.
-
-</div>
+ <strong>Note:</strong> If you have setup your install of Alaveteli for production, you will need to temporarily remove the file <code>config/rails_env.rb</code>, which is used to force the rails environment to production, and edit your <code>.bundle/config</code> file to remove the <code>BUNDLE_WITHOUT</code> line that excludes development dependencies. After you have done this, as the alaveteli user, run <code>bundle install</code>. You will also need to make alaveteli the owner of <code>/var/www/alaveteli/log/development.log</code>, and run the database migrations.
+ <pre><code>chown alaveteli:alaveteli /var/www/alaveteli/log/development.log
+sudo -u alaveteli bundle exec rake db:migrate</code></pre>
+You should then be able to run the tests. Don't forget to restore <code>config/rails_env.rb</code> when you're done. You will probably see some errors from cron jobs in the meantime, as they'll be running in development mode.
+</div>
* **glibc bug workaround**