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)?
Asked
Active
Viewed 258 times
0
-
Do you want to run flask in another port ? – Raja Simon Jul 14 '17 at 04:52
-
I want it to run on a different IP and port – ms4720 Jul 14 '17 at 06:35
-
Tried this `flask run -h 127.4.5.4 -p 5242` – Raja Simon Jul 14 '17 at 06:38
-
Flask Cookiecutter says use 'npm start', I would like to have it work with 'npm start' – ms4720 Jul 14 '17 at 07:13
-
Where in the documentation it says about `npm start` ? – Raja Simon Jul 14 '17 at 07:22
-
README.rst is where it is – ms4720 Jul 14 '17 at 08:05
-
Let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/149208/discussion-between-raja-simon-and-ms4720). – Raja Simon Jul 14 '17 at 09:21
1 Answers
0
To change flask run defaults edit package.json node file
add -- -h 192.168.33.15 to the 'npm run flask-server ' string

ms4720
- 327
- 1
- 11