Strapi zip deploy to Azure, missing /admin folder

System Information
  • Strapi Version:
  • Operating System:
  • Database:
  • Node Version:
  • NPM Version:
  • Yarn Version:

I am deploying strapi as a zip deploy, everything is uploaded but when I start the app in the address I get net::ERR_ABORTED 404 (Not Found) GET net::ERR_ABORTED 404 (Not Found)
favicon.ico:1 GET 404 (Not Found)

I have build the project using yarn build, and setting to ENV=Production

I zipped the build folder and using curl posted that to server:
curl -X POST -u $User --data-binary @“C:\Users\Administrator\Desktop\”

This is not how you should deploy it. You should deploy the whole project to azure and run it with yarn start or by using pm2.

Build folder contains only the Frontend.

Take a look at the deployment process for azure.

thanks for pointing this, I actually tried to deploy everything, but it couldn’t upload everything, after a time a got errors with response to server error.
I try to zip deploy to Azure as a web app using this tutorial : github-strapi-web-app

the last steps I did:
yarn build setting ENV=Production

then zip a strapi project and using that same curl command to upload it

could be the problem, is that Strapi does not recommend deploying to Azure as a web app?

We don’t recommend the serverless side of Azure as it certainly was not designed with applications like Strapi in mind. I have spend an ungodly amount of time trying to make it work properly with at least decent performance (I’ve never gotten it to successfully deploy).

ok, so should I just forget trying to deploy as a web app then. I mean even if it will work from my understanding it wouldn’t work properly though as a webapp as it was not intended so

I’ve seen others get it to work with substantiation “hacking and workarounds” to get it to function properly.

I am going try again, to upload the whole project using curl, if not then will go for official setup. Its just that my boss asked to deploy as a webapp, so I thought give it a try, found tutorial. But yes I see the downfalls and why its not advised initially. Thanks @DMehaffy will post here if I got it to work as a webapp, maybe someone else trying…

If anyone else has experience in the community (and you are reading this) who is willing to contribute a detailed guide to the documentation on Azure webapp deployment I would love to see a PR for it.

I’m fairly certain trying to write that guide myself has contributed to about a 20% hair loss on my head.


1 Like

I got it definitely working on an App Service as a docker container, that is how it is working for me atm … but i mean i got it also working as a nodejs deployment. For the later one i have to work it out again. I will not promise something, but i think i could do the task.