Sunday, March 31, 2019

Confused about deployment

Hi all,

Another newbie question for you! I have finally wrapped my head around asp.net core mvc and I have made a few apps. I would now like to deploy them so I can link to them on a portfolio website.

I have been working on two options:

  1. Azure App Service (free tier) with a PostgreSQL DB hosted on my DO droplet. Is this possible? I currently have my app working locally and accessing my DO postgres db. However, when I publish the app to azure I get errors around reaching the db. Is this a routing issue? Or am I not correctly preparing my application to be published?
  2. Everything on a DO droplet. I am somewhat knowledgeable about RHEL/CentOS (I have the RHCSA at least). I played around with dokku which seems promising but I wanted to get a POC up on a vanilla CentOS droplet. I followed the docs and set it up with apache as a reverse proxy. I first added it to my droplet that had SSL through LetsEncrypt. After running into issues, I spun up another droplet and commented out the https stuff in my app to test. I am still getting a 503 no matter what I do. I can curl my app from the droplet at localhost:5000. Does that mean it is definitely the proxy or permissions on the app?

Sorry for all the crazy ranting. I am finally picking up speed with my development and I feel like I wasted my entire Sunday trying to deploy the damn things. I just want to get back to coding! I would be eternally grateful for any pointers.

Thanks!

Confused about deployment Click here
  • Blogger Comment
  • Facebook Comment

0 comments:

Post a Comment

The webdev Team