rlidwka / sinopia

Private npm repository server
5.51k stars 655 forks source link

Working on IIS!!! #236

Open ppalladino opened 9 years ago

ppalladino commented 9 years ago

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.....

webuniverseio commented 9 years ago

@ppalladino I would like to see a patch anyway :) It will be useful.

ppalladino commented 9 years ago

@szarouski, you got it....stay tuned.

rlidwka commented 9 years ago

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.

ppalladino commented 9 years ago

@rlidwka I think we are on the same page. I'll work something up in the next week or so....

iamstarkov commented 9 years ago

I faced similar issue and solved it with --listen flag. So I run my server like this: sinopia -l 0.0.0.0:4000

JasonMore commented 9 years ago

:+1: to @iamstarkov. The documentation in readme.md was not clear how to host it outside the context of localhost