27.12.17

django con nginx, gunicorn, virtualenv, supervisor y postresql

Del siguiente artículo

http://michal.karzynski.pl/blog/2013/06/09/django-nginx-gunicorn-virtualenv-supervisor/

voy a extraer el siguiente guión ( mis anotaciones van con éste estilo )


$ sudo aptitude update
$ sudo aptitude upgrade

$ sudo aptitude install postgresql postgresql-contrib
 
$ sudo su - postgres
postgres@django:~$ createuser --interactive -P
Enter name of role to add: hello_django
Enter password for new role: 
Enter it again: 
Shall the new role be a superuser? (y/n) n
Shall the new role be allowed to create databases? (y/n) n
Shall the new role be allowed to create more new roles? (y/n) n
postgres@django:~$

postgres@django:~$ createdb --owner hello_django hello
postgres@django:~$ logout
$

No hay comentarios.: