CompositionalIT / SAFE-Dojo

An introductory dojo to learn how to develop full stack web applications in F#
378 stars 126 forks source link

Azure Deployment: Azure returns error 404 #169

Closed kumkee closed 1 year ago

kumkee commented 1 year ago

After deploying to Azure without errors, I fail to visit the web app. Is there anything on the Azure Dashboard I need to do after deployment?

Thank you,

Update

After changing the operating_system to Linux

let web = webApp {
      name "kumkeesafe"
      operating_system Linux
      sku WebApp.Sku.F1
      runtime_stack Runtime.DotNet50
      zip_deploy "deploy"
      }

I got a new error

:( Application Error If you are the application administrator, you can access the diagnostic resources.

Here is supposedly the URL of my app https://kumkeesafe.azurewebsites.net/

theprash commented 1 year ago

Hi @kumkee. What exactly did you deploy? Was it the master branch as it is with no changes? Or did it include some of your own changes? If you deployed your own version, then what happens if you deploy the master branch as it is?

kumkee commented 1 year ago

Hi @kumkee. What exactly did you deploy? Was it the master branch as it is with no changes? Or did it include some of your own changes? If you deployed your own version, then what happens if you deploy the master branch as it is?

With your reminder in mind, I tried deploying with and without my answers to the dojo. Both return the 404 error. Please follow the links to inspect my codes.

Tom-Sloboda commented 1 year ago

@kumkee, as a sanity check could you go to the App Service in Azure, then go to App Service Editor and check that the files have been deployed?

kumkee commented 1 year ago

@kumkee, as a sanity check could you go to the App Service in Azure, then go to App Service Editor and check that the files have been deployed?

I've removed the deployment and used Azure Functions instead. I couldn't wait a month. I can try to reproduce the error however if you want to investigate the problem.

isaacabraham commented 1 year ago

@kumkee this might require a newer version of Farmer than what is bundled with the Dojo. There were previously some issues with Linux deployments with old Farmer versions.

Tom-Sloboda commented 1 year ago

Closing as no action required