Mercurial > farol
comparison run_web @ 0:4a9f23230eba
Initial Release
author | Benoît Allard <benoit.allard@greenbone.net> |
---|---|
date | Wed, 24 Sep 2014 10:07:49 +0200 |
parents | |
children | 63b00c10ada8 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4a9f23230eba |
---|---|
1 #! /usr/bin/env python | |
2 # -*- coding: utf-8 -*- | |
3 # | |
4 # Authors: | |
5 # BenoƮt Allard <benoit.allard@greenbone.net> | |
6 # | |
7 # Copyright: | |
8 # Copyright (C) 2014 Greenbone Networks GmbH | |
9 # | |
10 # This program is free software; you can redistribute it and/or | |
11 # modify it under the terms of the GNU General Public License | |
12 # as published by the Free Software Foundation; either version 2 | |
13 # of the License, or (at your option) any later version. | |
14 # | |
15 # This program is distributed in the hope that it will be useful, | |
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18 # GNU General Public License for more details. | |
19 # | |
20 # You should have received a copy of the GNU General Public License | |
21 # along with this program; if not, write to the Free Software | |
22 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | |
23 | |
24 import os | |
25 | |
26 from farol.main import app | |
27 | |
28 app.secret_key = os.urandom(24) | |
29 app.config['CACHE_DIRECTORY'] = os.path.join(os.path.dirname(__file__), '_cache') | |
30 | |
31 if __name__ == "__main__": | |
32 app.run(host="0.0.0.0", debug=True) |