Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to run the odata-v4-server on iis #17

Open
egarim opened this issue Aug 22, 2017 · 3 comments
Open

How to run the odata-v4-server on iis #17

egarim opened this issue Aug 22, 2017 · 3 comments

Comments

@egarim
Copy link

egarim commented Aug 22, 2017

Hi I have a iis setup that is able to run node js files, for that i used this guide
https://www.hanselman.com/blog/InstallingAndRunningNodejsApplicationsWithinIISOnWindowsAreYouMad.aspx

after the iis setup is done, basically I just need to point the browser to the url of the js file containing the server like this "http://localhost/node/helloworld/hello.js"

but i the case of the odata server to start it, I use the command npm start. so for me is not clear to which js file should I point to start the saver as I do when I use node in iis

@lazarv
Copy link
Contributor

lazarv commented Aug 22, 2017

@egarim: you should target the index.js (lib/ts/index.js in the examples) or the main entry file for your server and should use the correct port by using process.env.PORT. odata-v4-server examples are using fixed port 3000. Although I don't know how IIS manages the URL after the script name to work with OData URLs.

@egarim
Copy link
Author

egarim commented Aug 22, 2017 via email

@egarim
Copy link
Author

egarim commented Aug 22, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants