mirror of
https://github.com/djohnlewis/stackdump
synced 2024-12-04 23:17:37 +00:00
Added notes on using supervisor with stackdump.
This commit is contained in:
parent
ce7edf1ca0
commit
28d79ea089
@ -140,8 +140,6 @@ To start Stackdump, execute the following command -
|
|||||||
|
|
||||||
If you need to change the port that it runs on, or modify other settings that control how Stackdump works; see the 'Optional configuration' section below for more details.
|
If you need to change the port that it runs on, or modify other settings that control how Stackdump works; see the 'Optional configuration' section below for more details.
|
||||||
|
|
||||||
Stackdump comes bundled with some init.d scripts as well which were tested on CentOS 5. These are located in the @init.d@ directory. To use these, you will need to modify them to specify the path to the Stackdump root directory and the user to run under.
|
|
||||||
|
|
||||||
Both the search indexer and the app need to be running for Stackdump to work.
|
Both the search indexer and the app need to be running for Stackdump to work.
|
||||||
|
|
||||||
h2. Optional configuration
|
h2. Optional configuration
|
||||||
@ -157,6 +155,25 @@ The settings file is located in @stackdump_dir/python/src/stackdump/settings.py@
|
|||||||
* *NUM_OF_RANDOM_QUESTIONS* - the number of random questions shown on the home page of Stackdump and the site pages. The default is _3_ questions.
|
* *NUM_OF_RANDOM_QUESTIONS* - the number of random questions shown on the home page of Stackdump and the site pages. The default is _3_ questions.
|
||||||
* *REWRITE_LINKS_AND_IMAGES* - by default, all links are rewritten to either point internally or be marked as an external link, and image URLs are rewritten to point to a placeholder image. Set this setting to _False_ to disable this behaviour.
|
* *REWRITE_LINKS_AND_IMAGES* - by default, all links are rewritten to either point internally or be marked as an external link, and image URLs are rewritten to point to a placeholder image. Set this setting to _False_ to disable this behaviour.
|
||||||
|
|
||||||
|
h2. Running Stackdump as a service
|
||||||
|
|
||||||
|
Stackdump comes bundled with some init.d scripts as well which were tested on CentOS 5. These are located in the @init.d@ directory. To use these, you will need to modify them to specify the path to the Stackdump root directory and the user to run under.
|
||||||
|
|
||||||
|
Another option is to use "Supervisor":http://supervisord.org/ with a simple configuration file, e.g.,
|
||||||
|
|
||||||
|
bc. [program:stackdump-solr]
|
||||||
|
command=/path/to/stackdump/start_solr.sh
|
||||||
|
priority=900
|
||||||
|
user=<stackdump user>
|
||||||
|
stdout_logfile=/path/to/stackdump/solr_stdout.log
|
||||||
|
stderr_logfile=/path/to/stackdump/solr_stderr.log
|
||||||
|
|
||||||
|
[program:stackdump-web]
|
||||||
|
command=/path/to/stackdump/start_web.sh
|
||||||
|
user=<stackdump user>
|
||||||
|
stdout_logfile=/path/to/stackdump/web_stdout.log
|
||||||
|
stderr_logfile=/path/to/stackdump/web_stderr.log
|
||||||
|
|
||||||
h2. Maintenance
|
h2. Maintenance
|
||||||
|
|
||||||
Stackdump stores all its data in the @data@ directory under its root directory. If you want to start fresh, just stop the app and the search indexer, delete that directory and restart the app and search indexer.
|
Stackdump stores all its data in the @data@ directory under its root directory. If you want to start fresh, just stop the app and the search indexer, delete that directory and restart the app and search indexer.
|
||||||
|
Loading…
Reference in New Issue
Block a user