allura
Revisão | 2a8097dfff60a586bb626867e5d80f4a9b5d1ade (tree) |
---|---|
Hora | 2012-03-30 21:23:47 |
Autor | Dave Brondsema <dbrondsema@geek...> |
Commiter | Yaroslav Luzin |
[#3874] move rabbitmq out of installation instructions
Signed-off-by: Dave Brondsema <dbrondsema@geek.net>
@@ -17,6 +17,7 @@ Getting Started | ||
17 | 17 | .. toctree:: |
18 | 18 | :maxdepth: 2 |
19 | 19 | |
20 | + installation | |
20 | 21 | platform_tour |
21 | 22 | scm_host |
22 | 23 | migration |
@@ -0,0 +1,29 @@ | ||
1 | +Installation | |
2 | +================= | |
3 | + | |
4 | +Easy Setup | |
5 | +--------------- | |
6 | + | |
7 | +Our easy setup instructions are in our README.rst file. You can read it online at https://sourceforge.net/p/allura/git/#readme | |
8 | + | |
9 | +You should be able to get Allura up and running in well under an hour by following those instructions. | |
10 | + | |
11 | +Enabling RabbitMQ | |
12 | +----------------- | |
13 | + | |
14 | +For faster notification of background jobs, you can use RabbitMQ. Assuming a base setup from the README, run these commands | |
15 | +to install rabbitmq and set it up:: | |
16 | + | |
17 | +(anvil)~$ sudo aptitude install rabbitmq-server | |
18 | +(anvil)~$ sudo rabbitmqctl add_user testuser testpw | |
19 | +(anvil)~$ sudo rabbitmqctl add_vhost testvhost | |
20 | +(anvil)~$ sudo rabbitmqctl set_permissions -p testvhost testuser "" ".*" ".*" | |
21 | +(anvil)~$ pip install amqplib==0.6.1 kombu==1.0.4 | |
22 | + | |
23 | +Then edit Allura/development.ini and change `amqp.enabled = false` to `amqp.enabled = true` and uncomment the other `amqp` settings. | |
24 | + | |
25 | +If your `paster taskd` process is still running, restart it:: | |
26 | + | |
27 | +(anvil)~/src/forge/Allura$ pkill -f taskd | |
28 | +(anvil)~/src/forge/Allura$ nohup paster taskd development.ini > ~/logs/taskd.log & | |
29 | + |
@@ -26,9 +26,9 @@ You'll also need additional development packages in order to compile some of the | ||
26 | 26 | ~$ sudo aptitude install default-jdk python-dev libssl-dev libldap2-dev libsasl2-dev libjpeg8-dev zlib1g-dev |
27 | 27 | ~$ sudo ln -s /usr/lib/x86_64-linux-gnu/libz.so /usr/lib |
28 | 28 | |
29 | -And finally our document-oriented database, MongoDB, and our messaging server, RabbitMQ. Note that RabbitMQ is optional, but will make messages flow faster through our asynchronous processors. By default, rabbitmq is disabled in development.ini. | |
29 | +And finally our document-oriented database, MongoDB | |
30 | 30 | |
31 | - ~$ sudo aptitude install mongodb-server rabbitmq-server | |
31 | + ~$ sudo aptitude install mongodb-server | |
32 | 32 | |
33 | 33 | ## Setting up a virtual python environment |
34 | 34 |
@@ -59,8 +59,6 @@ Although the application setup.py files define a number of dependencies, the `re | ||
59 | 59 | (anvil)~/src/forge$ easy_install pip |
60 | 60 | (anvil)~/src/forge$ pip install -r requirements-dev.txt |
61 | 61 | |
62 | -If you want to use RabbitMQ for faster message processing (optional), also pip install 'amqplib' and 'kombu'. | |
63 | - | |
64 | 62 | And now to setup each of the Forge applications for development. Because there are quite a few (at last count 15), we'll use a simple shell loop to set them up. |
65 | 63 | |
66 | 64 | for APP in Allura* Forge* NoWarnings |
@@ -97,15 +95,6 @@ We have a custom config ready for use. | ||
97 | 95 | (anvil)~/src/apache-solr-1.4.1/example/$ nohup java -Dsolr.solr.home=$(cd;pwd)/src/forge/solr_config -jar start.jar > ~/logs/solr.log & |
98 | 96 | |
99 | 97 | |
100 | -### RabbitMQ message queue (optional) | |
101 | - | |
102 | -We'll need to setup some development users and privileges. | |
103 | - | |
104 | - (anvil)~$ sudo rabbitmqctl add_user testuser testpw | |
105 | - (anvil)~$ sudo rabbitmqctl add_vhost testvhost | |
106 | - (anvil)~$ sudo rabbitmqctl set_permissions -p testvhost testuser "" ".*" ".*" | |
107 | - | |
108 | - | |
109 | 98 | ### Forge task processing |
110 | 99 | |
111 | 100 | Responds to asynchronous task requests. |
@@ -145,6 +134,7 @@ register a new project in your own forge, visit /p/add_project | ||
145 | 134 | ## Extra |
146 | 135 | |
147 | 136 | * Read more documentation: http://allura.sourceforge.net/ |
137 | + * Including how to enable extra features: http://allura.sourceforge.net/installation.html | |
148 | 138 | * Run the test suite (slow): `$ ALLURA_VALIDATION=none ./run_tests` |
149 | 139 | * File bug reports at <https://sourceforge.net/p/allura/tickets/new/> (login required) |
150 | 140 | * Contribute code according to this guide: <http://sourceforge.net/p/allura/wiki/Contributing%20Code/> |