Web API deployed successfully but stays unaccecssible
Hello guys
It was a wonderful experience using Appharbor for the last couple years. And it still is !
There is minor problem I have now:
After deploying, ASP.NET 5 WebAPI project it is unaccesible. Actually the project builds fine but then no URL is accessible. I suspect on this. The WebAPI uses its own background worker to start the process. I guess that is not supported at Appharbor, isn't it ? IF that is the case then what is the other way to deploy WebAPI services?
URL: http://thingtranslatorapi.apphb.com
Thank you in advance
Discussions are closed to public comments.
If you need help with AppHarbor please
start a new discussion.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by rune on 24 Nov, 2016 07:17 AM
Hi,
Good to hear you enjoy using the service! Hopefully we'll be able to get your new service up and running as well :-)
I took a look at the application and noticed that it's a prebuilt application that's being deployed as a background worker (executable). Background workers don't respond to traffic, but it should be possible to make your application work in IIS - you just can't use the "self-hosted" web server for these services.
It's a bit tricky for me to provide more advice when I don't have access to the code though. Are there any particular reasons why you're deploying an application that has been built locally? Otherwise it may be easier to debug this issue if you push the actual source code instead (along with a solution file referencing the ASP.NET 5 WebAPI project) so AppHarbor can process and deploy the build.
Best,
Rune
2 Posted by jalle007 on 24 Nov, 2016 09:45 AM
Hello Rune
Thank you for your answer. The code is published here
https://github.com/jalle007/ThingTranslatorAPI
For me its hard to find example how to make this to work without background worker.
3 Posted by jalle007 on 24 Nov, 2016 12:08 PM
OK I just realized that I made SelfHosted service . Need to convert it to ordinary WebAPI ))
4 Posted by jalle007 on 24 Nov, 2016 11:27 PM
-
jalle007 closed this discussion on 26 Nov, 2016 09:23 PM.