Last post Apr 03, 2021 11:49 AM by PatriceSc
Feb 25, 2021 06:20 PM|mjancic|LINK
Ok, this my very last attempt to deploy my API written in .NET 5.0. I have tried so many things that I am slowly approaching to a point where I shall just give the hell up.
This is my project: https://github.com/distractor/glista-api (if you pull it, make sure to go to 'publish' branch).
Ok, so, I have this project, that I developed on my laptop with Windows 10 and VisualStudio. The project works perfectly on my localhost. Running the project opens the nice swagger page in my browser. Great.
Things started to go really bad, when I decided to publish this to a server so people could have access to it. I tried the following things:
Ok, Never give up they say. Don't worry, I tried other things
So, I have come to a conclusion, that there is no way I am this stupid to fail this may times. True, this is my first time publishing things, but I can't be this stupid. There must be something wrong with my code and it for some strange reason works on my
localhost, but not on a server. For that reason I also added my git repo so you can try it yourself.
Now I have two requests:
Feb 25, 2021 06:51 PM|wavemaster|LINK
Sorry to hear all this, I am a few weeks behind you and I will have to go through this as well.
First obvious suggestion is to try to a Windows Server first. That should be the happy path, right?
Apr 02, 2021 07:32 PM|yogyogi|LINK
I recently went through Docker with ASP.NET Core area and I learned everything so want to tell you it takes time for me it took 2 months. I also deployed many apps with docker on azure including web api and database driven apps. I have published few
docker videos on my youtube channel, you can see them they will be very helpful to you. These videos are just 14 days old and so will
work perfectly if you try them.
I want to tell you it take a little time to learn any programming topic. So don't worry you will learn them slowly and slowly.
Apr 03, 2021 11:49 AM|PatriceSc|LINK
You are using Visual Studio? You could try perhaps
even with no db and just an dummy API to see if tit works or whihc problem you have.
Generally speaking it's liekly best to pick what you really want and if it fails to try to understand why and ask for help rather than just trying something else. For example in the worst case it could be something at the app level making the app tojust
fail for some reason and so trying again and again something else would never solve your issue.