documentation
documentation copied to clipboard
[Request]: Add deployment steps for Azure App Service
Summary
I read and followed all instructions how to deploy Strapi to an Azure App Service. (Except: I created a windows, not a linux app service plan)
However, the page only explains how to setup the infrastructure (App service, storage account...)
It does not explain how to deploy Strapi to the app service.
What I tried:
- I created a new strapi project locally - it works and I can start it on the localhost
- I run npm build and this seems also to be successful. The dist-folder now contains three sub folders: "build", "config" and "src"
- I copied all three folders to the wwwroot folder of my app service
I also followed all instructions from the page. But now I dont know how to continue. I have no node.js background knowledge, so I dont know if I need to take any further steps to start the app.
Can you update the information in the article or tell me what I am missing? I also dont need any CI/CD here, because I dont want to change the strapi code. I just want the OOTB features, so the deployment should be only necessary if there is an upgrade.
Why is it needed?
For people like me that have no NodeJS background knowledge, but want to get strapi OOTB features to work on Azure App services
Suggested solution(s)
Add a section to the documentation how to deploy the content of the dist folder to the app service.
Related issue(s)/PR(s)
No response
Hello @web265p3, I am sorry you are having issues deploying a Strapi application. We are going to rework the deployment guides in the near future, so these sorts of issues are really helpful to help us understand where users are struggling. I saw that Azure has instructions for deploying a locally git-controlled project. I will try to find time to test this myself this week and hopefully respond with some additional guidance.
Thanks! I just need to know where to copy the result folders of the build in the kuduu tools. Probably it's just copying the 3 folders somewhere... But where? :)
@StrapiShaun Did you find any time to go through the process again?
Hello @web265p3 , I started working on this today and should be able to finish tomorrow. There are some deployment details here as well: https://docs.microsoft.com/en-us/azure/app-service/deploy-local-git?tabs=cli
@StrapiShaun I now copied only the content of the "build" folder in the wwwroot. Now I get an output in the browser, but it complains that the admin-path was not found:
This is not surprising, because the strapi build command does not generate any admin folder or so. Maybe this helps you when you write your instructions...
I also opened an issue here in Stackoverflow.
@web265p3 Thanks for the follow-up. To me, this approach is not typical, but I am not a developer so I could be completely wrong. I am going to check with one of our solutions engineers and see if I can get some additional guidance.
Well, in the end I just followed the strapi docs:
So why should there be a build step that produces an output, if that output does not belong anywhere? Thanks!
hei @web265p3 Do you have any updates on this? Could you resolve the deployment issues? And if so, how? I am also struggling with the deployment to azure app-service...
Hi @web265p3 and @alainkaiser ,
Did any of you got this working? I'm struggling with this too.
Struggling with this.... Looks like this issue has been open for months now. Any update?
@TomMcEachan , maybe we should write in ALLCAPS
I managed to do it with a docker container but that was with serious trial and error.
Any update here?
Hi, Thanks for reporting. I'm closing this issue but it's included in the meta issue for 3rd-party deployment guides (https://github.com/strapi/documentation/issues/1941). In the meantime if you'd like to create a PR for your suggestion, we'll be happy to review it 🤗