]> git.parisson.com Git - timeside.git/commitdiff
increase sqlite db lock time
authorGuillaume Pellerin <yomguy@parisson.com>
Sat, 14 Mar 2015 01:46:40 +0000 (02:46 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Sat, 14 Mar 2015 01:46:50 +0000 (02:46 +0100)
examples/deploy/celery_app.sh
examples/sandbox/settings.py

index f92c6df7836a067fcddfea85e664360b39c4a500..6ffe3edcac710698066e1c953a61cf6326099012 100644 (file)
@@ -5,13 +5,9 @@ app_dir='/opt/TimeSide/'
 sandbox_dir='/home/timeside/'
 manage=$sandbox_dir'manage.py'
 
-# cp -uR /opt/TimeSide/examples/sandbox/* /home/timeside/
-
-echo "YYYYYYYYYYYYYY"
-
 pip install django-celery
 
 python $manage migrate --noinput
 
 # run Celery worker for our project myproject with Celery configuration stored in Celeryconf
-su -c "$manage celery worker -A celery_app"
+$manage celery worker -A celery_app
index 7254d785c025104b7f06462ee33830f6dfa7914e..a6ee4f4449343962658b971051a4bda60c311dad 100644 (file)
@@ -22,6 +22,9 @@ DATABASES = {
         'PASSWORD': '',  # Not used with sqlite3.
         'HOST': '',      # Set to empty string for localhost. Not used with sqlite3.
         'PORT': '',      # Set to empty string for default. Not used with sqlite3.
+        'OPTIONS': {
+            'timeout': 20,
+        }
     }
 }