Doveps / mono

Code for Doveps projects
http://doveps.com
MIT License
0 stars 0 forks source link

02-20-2018 Report #103

Closed JosiahRegencia closed 6 years ago

JosiahRegencia commented 6 years ago

Found a way to let the curl commands work. Had to specify the host in run.py to 0.0.0.0: https://github.com/Doveps/mono/blob/6eb4140b253456402eeeb8ea323cf4c7a3ffb0a2/savant/run.py#L7

However I'm faced with another problem. When I tried using "db" as the host screenshot from 2018-02-20 23 39 15

When I tried using 127.0.0.1 screenshot from 2018-02-20 23 31 18

I'm still not certain why. Still searching for that one. At least it's a step forward.

greenmoss commented 6 years ago

Ah interesting. In the app.run context, 0.0.0.0 means "listen on every interface".

For the "db" shortcut: the name "db" is only set up for you automatically by docker-compose. Since you're running this with normal docker commands, instead of docker-compose, you won't get "db". You will have to manually set the db name/IP when you test with only docker.

JosiahRegencia commented 6 years ago

Yup. I'm working on it right now. I have a couple of initial ideas