Commit d25141d51d26e3db35984a7b55eda8e408576da7
1 parent
ae59f053
Exists in
master
and in
79 other branches
Added README
Signed-off-by: Lucas Kanashiro <kanashiro.duarte@gmail.com> Signed-off-by: Carlos Oliveira <carlospecter@gmail.com>
Showing
1 changed file
with
41 additions
and
0 deletions
Show diff stats
... | ... | @@ -0,0 +1,41 @@ |
1 | +# Colab SPB theme | |
2 | + | |
3 | +Tema para o Colab relacionado ao projeto SPB (Software Público Brasileiro). | |
4 | + | |
5 | +## Testando Colab SPB theme | |
6 | + | |
7 | +### Requisitos para testar o tema no ambiente do Colab | |
8 | + | |
9 | +* virtualbox | |
10 | +* vagrant | |
11 | + | |
12 | +### Passo-a-passo | |
13 | + | |
14 | +1. Clonar o repositório do Colab (https://beta.softwarepublico.gov.br/gitlab/softwarepublico/colab) | |
15 | + | |
16 | +2. Entre na raiz do repositório do Colab (cd colab) | |
17 | + | |
18 | +3. Crie o diretório "theme" e entre no mesmo (mkdir theme; cd theme) | |
19 | + | |
20 | +4. Clonar o repositório colab-spb-theme (https://beta.softwarepublico.gov.br/gitlab/softwarepublico/colab-spb-theme) | |
21 | + | |
22 | +5. Volte para a raíz do repositório do Colab e edite o arquivo initconfig.py (cd .. ; vim colab/management/initconfig.py) | |
23 | + | |
24 | +Adicione o seguinte conteúdo ao final do arquivo: | |
25 | + | |
26 | +```python | |
27 | +CONFIG_TEMPLATE += """ | |
28 | +COLAB_STATICS = ['/vagrant/theme/colab-spb-theme/static'] | |
29 | +COLAB_TEMPLATES = ('/vagrant/theme/colab-spb-theme/templates',) | |
30 | +""" | |
31 | +``` | |
32 | + | |
33 | +6. Subir a máquina virtual do Colab, utilizar chef/centos-7.0 quando for solicitado (vagrant up) | |
34 | + | |
35 | +7. Logue na máquina virtual (vagrant ssh) | |
36 | + | |
37 | +8. Entre no diretório /vagrant (cd /vagrant) | |
38 | + | |
39 | +9. Logue no virtualenv do Colab (workon colab) | |
40 | + | |
41 | +10. Execute o servidor de desenvolvimento do Colab (colab-admin runserver 0.0.0.0:8000) | ... | ... |