Commit e5402b1a332c70180a36a51488de6c07e0e614a5
1 parent
22acb1eb
Exists in
master
Adicionando Vagrant file com as dependências do projeto
Showing
6 changed files
with
54 additions
and
3 deletions
Show diff stats
.gitignore
@@ -6,8 +6,8 @@ | @@ -6,8 +6,8 @@ | ||
6 | # Compiled source # | 6 | # Compiled source # |
7 | ################### | 7 | ################### |
8 | *.pyc | 8 | *.pyc |
9 | -build/* | ||
10 | -.sass-cache/* | 9 | +**/build/* |
10 | +**/.sass-cache/* | ||
11 | assets.json | 11 | assets.json |
12 | app/templates/* | 12 | app/templates/* |
13 | 13 | ||
@@ -18,3 +18,6 @@ app/static/*.js | @@ -18,3 +18,6 @@ app/static/*.js | ||
18 | test/*.jtl | 18 | test/*.jtl |
19 | test/resultado.txt | 19 | test/resultado.txt |
20 | 20 | ||
21 | +# Vagrant files # | ||
22 | +################ | ||
23 | +.vagrant |
LEIAME
@@ -38,6 +38,12 @@ Para profiling é necessário além dos acima | @@ -38,6 +38,12 @@ Para profiling é necessário além dos acima | ||
38 | 38 | ||
39 | - werkzeug | 39 | - werkzeug |
40 | 40 | ||
41 | +Usando vagrant: | ||
42 | + | ||
43 | +vagrant up | ||
44 | +vagrant ssh | ||
45 | +cd /vagrant/ | ||
46 | + | ||
41 | Requisitos da Barra | 47 | Requisitos da Barra |
42 | 48 | ||
43 | 1. A Barra deve ser adaptável a um desenho fluído e fixo | 49 | 1. A Barra deve ser adaptável a um desenho fluído e fixo |
README.md
@@ -60,6 +60,14 @@ Para profiling é necessário além dos acima: | @@ -60,6 +60,14 @@ Para profiling é necessário além dos acima: | ||
60 | 60 | ||
61 | * werkzeug | 61 | * werkzeug |
62 | 62 | ||
63 | + | ||
64 | +## Usando vagrant: | ||
65 | + | ||
66 | +``` | ||
67 | +vagrant up | ||
68 | +vagrant ssh | ||
69 | +cd /vagrant/ | ||
70 | +``` | ||
63 | 71 | ||
64 | ## Geração da barra | 72 | ## Geração da barra |
65 | 73 |
@@ -0,0 +1,11 @@ | @@ -0,0 +1,11 @@ | ||
1 | +#!/usr/bin/env ruby | ||
2 | + | ||
3 | +VAGRANTFILE_API_VERSION = '2' | ||
4 | + | ||
5 | +Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | ||
6 | + config.vm.box = 'ubuntu/trusty64' | ||
7 | + config.vm.provision :shell, path: 'provision.sh' | ||
8 | + config.vm.network :forwarded_port, guest: 5000, host: 5000 | ||
9 | + | ||
10 | + config.cache.scope = :box | ||
11 | +end |
app/barrabrasil.py
@@ -61,7 +61,7 @@ def barra(): | @@ -61,7 +61,7 @@ def barra(): | ||
61 | if __name__ == '__main__': | 61 | if __name__ == '__main__': |
62 | import webbrowser | 62 | import webbrowser |
63 | webbrowser.open("http://127.0.0.1:5000/",new=2) | 63 | webbrowser.open("http://127.0.0.1:5000/",new=2) |
64 | - app.run(debug=True) | 64 | + app.run(host='0.0.0.0', debug=True) |
65 | #webbrowser.open("https://127.0.0.1:5000/",new=2) | 65 | #webbrowser.open("https://127.0.0.1:5000/",new=2) |
66 | #app.run(debug=False,ssl_context=ctx) | 66 | #app.run(debug=False,ssl_context=ctx) |
67 | 67 |
@@ -0,0 +1,23 @@ | @@ -0,0 +1,23 @@ | ||
1 | +#!/bin/bash | ||
2 | +set -e -x -o pipefail | ||
3 | +export DEBIAN_FRONTEND='noninteractive' | ||
4 | + | ||
5 | +sudo add-apt-repository ppa:chris-lea/node.js | ||
6 | +sudo apt-get update | ||
7 | + | ||
8 | +apt-get install -y \ | ||
9 | + python-dev \ | ||
10 | + python-pip \ | ||
11 | + nodejs \ | ||
12 | + ruby | ||
13 | + | ||
14 | +pip install \ | ||
15 | + Flask \ | ||
16 | + config \ | ||
17 | + assetgen | ||
18 | + | ||
19 | +npm install -g \ | ||
20 | + coffee-script \ | ||
21 | + uglify-js | ||
22 | + | ||
23 | +gem install sass |