Open ppalladino opened 9 years ago
@ppalladino I would like to see a patch anyway :) It will be useful.
@szarouski, you got it....stay tuned.
Ideally, I'd like to have something like listen: "0.0.0.0:${PORT}"
in the config file. And sinopia would substitute those with environment variables like bash does.
Not sure how useful it would be, but it'd solve this.
See also issue https://github.com/rlidwka/sinopia/issues/213, kinda similar thing.
Or move config file from yaml
to js
, so you could write literally any logic there. Not sure what would be better.
@rlidwka I think we are on the same page. I'll work something up in the next week or so....
I faced similar issue and solved it with --listen
flag. So I run my server like this: sinopia -l 0.0.0.0:4000
:+1: to @iamstarkov. The documentation in readme.md was not clear how to host it outside the context of localhost
Hi! Great module btw. I was able to get this working on IIS via iisnode. I only had to make one hack and that was hard coding express's listening port to: process.env.PORT. I would like to contribute a config patch and then a write up on how to get working on IIS. Do you have preference on my implementation? I was thinking setting the port in the config file to 'process.env.PORT' would enable this feature.....