From f09ba377b5c0e167a8afebfa889ee017c599a504 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Fri, 17 Jun 2016 10:54:02 +0200 Subject: [PATCH] Fix flask invokaction from grunt. --- grunt-config/bgShell.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/grunt-config/bgShell.js b/grunt-config/bgShell.js index cb757cd..399d715 100644 --- a/grunt-config/bgShell.js +++ b/grunt-config/bgShell.js @@ -1,6 +1,15 @@ +var extend = require('util')._extend; + module.exports = { runserver: { - cmd: 'python -m manage runserver -d -r', + cmd: 'flask run', + execOpts: { + cwd: '.', + env: extend(process.env, { + FLASK_APP: 'accountant/__init__.py', + FLASK_DEBUG: '1' + }) + }, fail: true, bg: true }