comparison run_web @ 1:63b00c10ada8

Add Configuration support, warning when in DEBUG mode, and Deployment instruction
author Benoît Allard <benoit.allard@greenbone.net>
date Wed, 24 Sep 2014 15:04:19 +0200
parents 4a9f23230eba
children
comparison
equal deleted inserted replaced
0:4a9f23230eba 1:63b00c10ada8
19 # 19 #
20 # You should have received a copy of the GNU General Public License 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 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. 22 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
23 23
24 import os
25
26 from farol.main import app 24 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 25
31 if __name__ == "__main__": 26 if __name__ == "__main__":
32 app.run(host="0.0.0.0", debug=True) 27 app.run(host="0.0.0.0", debug=True)

http://farol.wald.intevation.org