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 | 6 | # Compiled source # |
7 | 7 | ################### |
8 | 8 | *.pyc |
9 | -build/* | |
10 | -.sass-cache/* | |
9 | +**/build/* | |
10 | +**/.sass-cache/* | |
11 | 11 | assets.json |
12 | 12 | app/templates/* |
13 | 13 | |
... | ... | @@ -18,3 +18,6 @@ app/static/*.js |
18 | 18 | test/*.jtl |
19 | 19 | test/resultado.txt |
20 | 20 | |
21 | +# Vagrant files # | |
22 | +################ | |
23 | +.vagrant | ... | ... |
LEIAME
README.md
... | ... | @@ -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 | 61 | if __name__ == '__main__': |
62 | 62 | import webbrowser |
63 | 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 | 65 | #webbrowser.open("https://127.0.0.1:5000/",new=2) |
66 | 66 | #app.run(debug=False,ssl_context=ctx) |
67 | 67 | ... | ... |
... | ... | @@ -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 | ... | ... |