Switch to unified view

a/start-sandbox.bash b/start-sandbox.bash
...
...
3
3
4
# Start RabbitMQ
4
# Start RabbitMQ
5
# sudo rabbitmq-server & # already started for us
5
# sudo rabbitmq-server & # already started for us
6
rabbitmqctl add_user testuser testpw
6
rabbitmqctl add_user testuser testpw
7
rabbitmqctl add_vhost testvhost
7
rabbitmqctl add_vhost testvhost
8
rabbitmqctl add_vhost vhost_testing
8
rabbitmqctl set_permissions -p testvhost testuser "" ".*" ".*"
9
rabbitmqctl set_permissions -p testvhost testuser "" ".*" ".*"
10
rabbitmqctl set_permissions -p vhost_testing testuser "" ".*" ".*"
9
11
10
12
11
# Start SOLR, as per SOG-sandbox location
13
# Start SOLR, as per SOG-sandbox location
14
SOLRCONFIG="$(pwd)/solr_config"
12
pushd /usr/local/solr
15
pushd /usr/local/solr
13
/usr/java/jdk1.5.0_15/bin/java -jar start.jar &
16
/usr/java/jdk1.5.0_15/bin/java -Dsolr.solr.home="$SOLRCONFIG" -jar start.jar &
14
popd
17
popd
15
18
16
19
17
# Start mongo, already on the path
20
# Start mongo, already on the path
18
# mongod & # already started for us
21
# mongod & # already started for us
22
# Start a second instance of mongo for tests
23
mkdir -p /data/db-test
24
mongod --port 27108 --dbpath /data/db-test &
19
25
20
26
21
# Start the forge
27
# Start the forge
22
. sandbox-env/bin/activate
28
. sandbox-env/bin/activate
23
cd pyforge
29
cd pyforge
24
paster reactor_setup sandbox.ini
30
paster reactor_setup sandbox.ini
25
paster reactor sandbox.ini &
31
paster reactor sandbox.ini &
26
paster smtp_server sandbox.ini &
32
paster smtp_server sandbox.ini &
27
33
34
paster reactor_setup sandbox-test.ini#main_with_amqp
35
28
paster setup-app sandbox.ini
36
paster setup-app sandbox.ini
29
paster serve --reload --daemon sandbox.ini
37
paster serve --reload --daemon sandbox.ini
30
38
31
sleep 5
39
sleep 5
32
echo "########################################"
40
echo "########################################"