diff options
author | Louise Crow <louise.crow@gmail.com> | 2014-07-08 10:29:28 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2014-07-16 11:54:32 +0100 |
commit | 85abc20d8459c4a8935474faa58cb04ba3d2a233 (patch) | |
tree | 8fd7004b5b9e2737be9c72ca71e51dbb49ed422d /docs | |
parent | 05d2ac65ece569f103768e3f030ea898c4184bb2 (diff) |
Add instructions for updating Alaveteli path in init scripts.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/installing/deploy.md | 6 | ||||
-rw-r--r-- | docs/installing/manual_install.md | 10 |
2 files changed, 16 insertions, 0 deletions
diff --git a/docs/installing/deploy.md b/docs/installing/deploy.md index 721d74cff..fc5f9c58e 100644 --- a/docs/installing/deploy.md +++ b/docs/installing/deploy.md @@ -149,6 +149,12 @@ Back on the server: If you're using Exim as your MTA, edit `etc/exim4/conf.d/04_alaveteli_options` to update the `ALAVETELI_HOME` variable to the new Alaveteli path. Restart the MTA after you've made these changes. +* You will also need to update the path to Alaveteli in your [init scripts]({{site.baseurl}}docs/installing/manual_install/#cron-jobs-and-init-scripts). + You should have a script for running the alert tracks + (`/etc/init.d/foi-alert-tracks`), and possibly scripts for purging the + varnish cache (`/etc/init.d/foi-purge-varnish`), and restarting the + app server (`/etc/init.d/alaveteli`). + Phew, you're done! You can delete the temporary copy of Alaveteli (perhaps in your diff --git a/docs/installing/manual_install.md b/docs/installing/manual_install.md index 821188b85..603db14c0 100644 --- a/docs/installing/manual_install.md +++ b/docs/installing/manual_install.md @@ -480,6 +480,16 @@ by your deploy user (named `deploy` in this case). deploy ALL = NOPASSWD: /etc/init.d/foi-alert-tracks, /etc/init.d/foi-purge-varnish +There is also an example config for stopping and starting the +Alaveteli app server as a service in `config/sysvinit.example`. This +example assumes you're using Thin as an application server, so will +need tweaking for Passenger or any other app server. You can install +this by copying it to `/etc/init.d/alaveteli` and setting the +`SITE_HOME` variable to the path where Alaveteli is running, and the +`USER` variable to the Unix user that will be running Alaveteli. Once +that's done, you can restart Alaveteli with `/etc/init.d/alaveteli +restart`. + ## Set up production web server It is not recommended to run the website using the default Rails web server. |