Fixes on deployment

This commit is contained in:
Marc Aymerich 2015-10-01 18:06:09 +00:00
parent 5c87c3a7d7
commit d6311b8096
2 changed files with 16 additions and 2 deletions

14
TODO.md
View File

@ -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 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)

View File

@ -41,7 +41,7 @@ function main () {
read -p "Enter a new database password: " db_password read -p "Enter a new database password: " db_password
while true; do 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 case $task in
'celery' ) task=celery; break;; 'celery' ) task=celery; break;;
'cronbeat' ) task=cronbeat; break;; 'cronbeat' ) task=cronbeat; break;;
@ -77,7 +77,7 @@ function main () {
run python3 manage.py collectstatic --noinput run python3 manage.py collectstatic --noinput
run sudo apt-get install nginx-full uwsgi uwsgi-plugin-python3 run sudo apt-get install nginx-full uwsgi uwsgi-plugin-python3
run sudo python3 manage.py setupnginx --user $USER 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 run python3 manage.py check --deploy
} }