0

I am trying to use flask-cookiecutter, https://github.com/konstantint/cookiecutter-flask , to build a website/learn flask and webdev. I have the dev env setup on a mac and I want to run it from a Centos VM on my mac. My problem is how do I set the default ip and port to something other than http://127.0.0.1:5000/ in a non-horrific manner(patching flask source code)?

ms4720
  • 327
  • 1
  • 11

1 Answers1

0

To change flask run defaults edit package.json node file

add -- -h 192.168.33.15 to the 'npm run flask-server ' string

Docs: https://docs.npmjs.com/cli/run-script

ms4720
  • 327
  • 1
  • 11