fssnippets / fssnip-website

Source code for the F# Snippets web site
http://fssnip.net
103 stars 36 forks source link

Migrate to .NET Core (again) #99

Closed tpetricek closed 4 years ago

tpetricek commented 4 years ago

PR for another attempt of #96

I could not figure out how to get this to work. The current "App Service" runs dotnet version 2.x. I can create a new App Service, but if I choose .NET Core 3.0, then I still get a version 2.x somehow. If I choose .NET Core 3.1, then Azure portal only lets me create Linux machine - which I'm OK with - but then we cannot run build.cmd. Changing that in .deployment to build.sh also did not work for me though - it was still complaining about wrong version of .NET Core.

@eiriktsarpalis If you can figure out how to get this to deploy in any way on any sort of App Service, then I'm happy to set things up, but right now, I just don't know how to make it happy. (If App Service is the wrong thing to use nowadays, I'm happy to switch to something else, but I need some help figuring out what exactly to do...)

eiriktsarpalis commented 4 years ago

I was able to get it to run on docker: https://fssnip-docker.azurewebsites.net/

Uses Azure pipelines for CI/CD and Azure Container Registry. All were auto-generated using the Dockerfile at the root of the repo.

eiriktsarpalis commented 4 years ago

🎉 🎉 🎉