Sfoglia il codice sorgente

Tweaks to QA server config

master
David Winterbottom 13 anni fa
parent
commit
21cf9c08ff

+ 2
- 2
oscar/apps/dashboard/offers/app.py Vedi File

5
 from oscar.apps.dashboard.offers import views
5
 from oscar.apps.dashboard.offers import views
6
 from oscar.apps.dashboard.nav import register, Node
6
 from oscar.apps.dashboard.nav import register, Node
7
 
7
 
8
-node = Node('Offers')
9
-node.add_child(Node('All offers', 'dashboard:offer-list'))
8
+node = Node('Offers', 'dashboard:offer-list')
10
 register(node, 50)
9
 register(node, 50)
11
 
10
 
11
+
12
 class OffersDashboardApplication(Application):
12
 class OffersDashboardApplication(Application):
13
     name = None
13
     name = None
14
     list_view = views.OfferListView
14
     list_view = views.OfferListView

+ 2
- 2
sandbox/deploy/apache2/qa.conf Vedi File

5
     ErrorLog /var/log/apache2/error.qa.oscar.log
5
     ErrorLog /var/log/apache2/error.qa.oscar.log
6
 	AllowEncodedSlashes On
6
 	AllowEncodedSlashes On
7
 
7
 
8
-    WSGIDaemonProcess oscar processes=2 threads=5 display-name=oscar maximum-requests=10000
9
-    WSGIProcessGroup oscar
8
+    WSGIDaemonProcess oscar-qa processes=2 threads=5 display-name=oscar maximum-requests=10000
9
+    WSGIProcessGroup oscar-qa
10
     WSGIApplicationGroup %{GLOBAL}
10
     WSGIApplicationGroup %{GLOBAL}
11
     WSGIScriptAlias / /var/www/oscar/builds/qa/sandbox/deploy/wsgi/qa.wsgi
11
     WSGIScriptAlias / /var/www/oscar/builds/qa/sandbox/deploy/wsgi/qa.wsgi
12
     WSGIPassAuthorization On
12
     WSGIPassAuthorization On

+ 1
- 1
sandbox/deploy/nginx/qa.conf Vedi File

9
     gzip_proxied any;
9
     gzip_proxied any;
10
     gzip_types text/plain application/json;
10
     gzip_types text/plain application/json;
11
 
11
 
12
-	client_max_body_size = 3M
12
+	client_max_body_size 3M;
13
 
13
 
14
 	location /media/ {
14
 	location /media/ {
15
 		root /var/www/oscar/builds/qa/sandbox/assets;
15
 		root /var/www/oscar/builds/qa/sandbox/assets;

+ 1
- 1
sandbox/update_qa.sh Vedi File

3
 cd /var/www/oscar/builds/qa/
3
 cd /var/www/oscar/builds/qa/
4
 
4
 
5
 # Update any dependencies
5
 # Update any dependencies
6
-source ../../../virtualenvs/qa/bin/activate
6
+source ../../virtualenvs/qa/bin/activate
7
 python setup.py develop
7
 python setup.py develop
8
 pip install -r requirements.txt
8
 pip install -r requirements.txt
9
 
9
 

Loading…
Annulla
Salva