mirror of https://github.com/interlegis/sapl.git
1 changed files with 23 additions and 0 deletions
@ -0,0 +1,23 @@ |
|||
### Instalação do Ambiente de Desenvolvimento |
|||
|
|||
Instalar as seguintes dependências de sistema (no Ubuntu): |
|||
|
|||
sudo apt-get install python3-dev libpq-dev graphviz graphviz-dev \ |
|||
postgresql postgresql-contrib pgadmin3 python-psycopg2 |
|||
|
|||
|
|||
* Criar um virtualenv usando python 3 para o projeto e ativá-lo. Se vc usa o |
|||
[virtualenvwrapper](https://virtualenvwrapper.readthedocs.org/en/latest/install.html#basic-installation): |
|||
|
|||
mkvirtualenv -p /usr/bin/python3 sapl |
|||
* Instalar as dependências python com: |
|||
|
|||
pip install -r requirements/dev-requirements.txt |
|||
|
|||
* Configurar o [PostgreSQL](https://help.ubuntu.com/community/PostgreSQL) |
|||
* Crie um role "sapl" com: |
|||
- senha "sapl", |
|||
- o privilégio "can create databases", |
|||
- uma data de expiração distante (ou infinita, usando p.ex. `ALTER ROLE sapl VALID UNTIL 'infinity';` |
|||
* Crie um banco "sapl" com owner "sapl". |
|||
* Restaure o dump do banco de desenvolvimento. |
|||
Loading…
Reference in new issue