]> git.parisson.com Git - diggersdigest.git/commitdiff
increase file upload size
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 19 Oct 2015 09:43:07 +0000 (11:43 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 19 Oct 2015 09:43:07 +0000 (11:43 +0200)
app/deploy/start_app-dev.sh [new file with mode: 0644]
app/deploy/start_app.sh
app/diggersdigest/urls.py

diff --git a/app/deploy/start_app-dev.sh b/app/deploy/start_app-dev.sh
new file mode 100644 (file)
index 0000000..afa1a68
--- /dev/null
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+# paths
+root='/opt/'
+sandbox=$root'app/'
+manage=$sandbox'manage.py'
+wsgi=$sandbox'wsgi.py'
+static=$root'static/'
+media=$root'media/'
+
+# waiting for other services
+sh $sandbox/deploy/wait.sh
+
+# django init
+python $manage migrate --noinput
+python $manage collectstatic --noinput
+
+# static files auto update
+watchmedo shell-command --patterns="*.js;*.css" --recursive \
+     --command='python '$manage' collectstatic --noinput' $sandbox &
+
+# app start
+uwsgi --socket :8000 --wsgi-file $wsgi --chdir $sandbox --master --processes 4 --threads 2 --py-autoreload 3
+
+#python $manage runserver 0.0.0.0:8000
index afa1a684000bec83fdc8946e66d50d69048c1703..2d84563e5f3202dc9fb26c2150d56ceb935b0f25 100644 (file)
@@ -1,5 +1,9 @@
 #!/bin/sh
 
+# options
+procs=4
+threads=4
+
 # paths
 root='/opt/'
 sandbox=$root'app/'
@@ -20,6 +24,9 @@ watchmedo shell-command --patterns="*.js;*.css" --recursive \
      --command='python '$manage' collectstatic --noinput' $sandbox &
 
 # app start
-uwsgi --socket :8000 --wsgi-file $wsgi --chdir $sandbox --master --processes 4 --threads 2 --py-autoreload 3
+uwsgi --socket :8000 --wsgi-file $wsgi --chdir $sandbox --master \
+  --processes $procs --threads $threads \
+  --touch-reload $wsgi \
+  --limit-post=4294967296
 
 #python $manage runserver 0.0.0.0:8000
index 735d83c8f6901e5599fc0d4688ad9eaf74e751df..6b1fd34b88642de860a4d0de6ebc6d80d610ab3f 100644 (file)
@@ -26,6 +26,7 @@ if settings.USE_MODELTRANSLATION:
     )
 
 urlpatterns += patterns('',
+    # (r'^newsletter/', include('newsletter.urls')),
 
     (r'^paypal-ipn-8c5erc9ye49ia51rn655mi4xs8/', include('paypal.standard.ipn.urls')),