Commit 5e97b5e9d46dfb46e179c982a7534626e510aa24
1 parent
1d5b64fa
Exists in
master
Closes #2
Showing
2 changed files
with
3 additions
and
7 deletions
Show diff stats
app/barrabrasil.py
| ... | ... | @@ -35,11 +35,7 @@ def pagina_teste(): |
| 35 | 35 | |
| 36 | 36 | @app.route('/barra.js') |
| 37 | 37 | def barra(): |
| 38 | - f = app.open_resource('profile') | |
| 39 | - cfg = Config(f) | |
| 40 | - profile = cfg.profile | |
| 41 | - data = cfg.date | |
| 42 | - with app.open_resource('templates/%s/barra-brasil.js' % profile) as f: | |
| 38 | + with app.open_resource('templates/default/barra-brasil.js') as f: | |
| 43 | 39 | conteudo = f.read().decode('utf-8') |
| 44 | 40 | etag = hashlib.sha1(conteudo.encode('utf-8')).hexdigest() |
| 45 | 41 | accept_encoding = request.headers.get('Accept-Encoding', '') | ... | ... |
provision.sh
| ... | ... | @@ -5,7 +5,7 @@ export DEBIAN_FRONTEND='noninteractive' |
| 5 | 5 | cd /home/vagrant |
| 6 | 6 | |
| 7 | 7 | # Installing nvm |
| 8 | -wget -qO- https://raw.github.com/creationix/nvm/master/install.sh | sh | |
| 8 | +wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash | |
| 9 | 9 | |
| 10 | 10 | # This enables NVM without a logout/login |
| 11 | 11 | export NVM_DIR="/home/vagrant/.nvm" |
| ... | ... | @@ -20,4 +20,4 @@ GIT_SSL_NO_VERIFY=true git clone http://portal.softwarepublico.gov.br/gitlab/gov |
| 20 | 20 | |
| 21 | 21 | cd barra-govbr |
| 22 | 22 | |
| 23 | -make venv | |
| 23 | +make run | ... | ... |