Fix `flask-server` script to be run through pipenv

If `pipenv` was selected during setup, then `npm run flask-server` should run `pipenv run flask run`.
master
Oerd Cukalla 6 years ago committed by GitHub
parent bbb17404c6
commit d600bb43a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      {{cookiecutter.app_name}}/package.json

@ -6,7 +6,7 @@
"build": "NODE_ENV=production webpack --progress --colors -p", "build": "NODE_ENV=production webpack --progress --colors -p",
"start": "concurrently -n \"WEBPACK,FLASK\" -c \"bgBlue.bold,bgMagenta.bold\" \"npm run webpack-dev-server\" \"npm run flask-server\"", "start": "concurrently -n \"WEBPACK,FLASK\" -c \"bgBlue.bold,bgMagenta.bold\" \"npm run webpack-dev-server\" \"npm run flask-server\"",
"webpack-dev-server": "NODE_ENV=debug webpack-dev-server --port 2992 --hot --inline", "webpack-dev-server": "NODE_ENV=debug webpack-dev-server --port 2992 --hot --inline",
"flask-server": "flask run", "flask-server": "{% if cookiecutter.use_pipenv == 'yes' %}pipenv run {% endif %}flask run",
"lint": "eslint \"assets/js/*.js\"" "lint": "eslint \"assets/js/*.js\""
}, },
"repository": { "repository": {

Loading…
Cancel
Save