From d6311b8096de5240c7dcd03134b43c8ae296c5ef Mon Sep 17 00:00:00 2001 From: Marc Aymerich Date: Thu, 1 Oct 2015 18:06:09 +0000 Subject: [PATCH] Fixes on deployment --- TODO.md | 14 ++++++++++++++ scripts/containers/deploy.sh | 4 ++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/TODO.md b/TODO.md index 8a940526..3a595a94 100644 --- a/TODO.md +++ b/TODO.md @@ -419,3 +419,17 @@ http://makandracards.com/makandra/24933-chrome-34+-firefox-38+-ie11+-ignore-auto mkhomedir_helper or create ssh homes with bash.rc and such + + $ sudo python3 manage.py setupnginx --user orchestra +/usr/lib/python3.4/importlib/_bootstrap.py:321: RemovedInDjango19Warning: django.utils.importlib will be removed in Django 1.9. + return f(*args, **kwds) + +/usr/local/lib/python3.4/dist-packages/django/contrib/contenttypes/models.py:159: RemovedInDjango19Warning: Model class django.contrib.contenttypes.models.ContentType doesn't declare an explicit app_label and either isn't in an application in INSTALLED_APPS or else was imported before its application was loaded. This will no longer be supported in Django 1.9. + class ContentType(models.Model): + +/usr/lib/python3.4/importlib/_bootstrap.py:321: RemovedInDjango19Warning: The django.forms.util module has been renamed. Use django.forms.utils instead. + return f(*args, **kwds) + +/usr/lib/python3.4/importlib/_bootstrap.py:321: RemovedInDjango19Warning: The utilities in django.db.models.loading are deprecated in favor of the new application loading system. + return f(*args, **kwds) + diff --git a/scripts/containers/deploy.sh b/scripts/containers/deploy.sh index 9732bb4a..4a2d3714 100644 --- a/scripts/containers/deploy.sh +++ b/scripts/containers/deploy.sh @@ -41,7 +41,7 @@ function main () { read -p "Enter a new database password: " db_password while true; do - read -p "Do you want to use celery or cronbeat for task execution [cronbeat]?" task + read -p "Do you want to use celery or cronbeat for task execution [cronbeat]? " task case $task in 'celery' ) task=celery; break;; 'cronbeat' ) task=cronbeat; break;; @@ -77,7 +77,7 @@ function main () { run python3 manage.py collectstatic --noinput run sudo apt-get install nginx-full uwsgi uwsgi-plugin-python3 run sudo python3 manage.py setupnginx --user $USER - run sudo python manage.py startservices + run sudo python3 manage.py startservices run python3 manage.py check --deploy }