Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploying Strapi to Azure

Tags:

azure

strapi

I want to deploy Strapi to my Azure. Anyone here who has an experience doing such and making it up and running completely? Somehow I couldn't find any detailed instructions how to do that in Azure.. I'm looking for something that is as easy as deploying it to Heroku - but it's fine though if it'll require more steps as long as I can make it to work completely.

like image 375
Jay Avatar asked Dec 09 '25 05:12

Jay


1 Answers

This is the complete instruction I have also created in the README of the repository.

Strapi-Azure 3.1.3

This is a working repository of Strapi 3.1.3 which you can already deploy as an Azure Web App. This requres a paid subscription, minimum of B1 plan (32 USD estimated), so we can enable the 64-bit platform configuration and the Always On feature.

To get started, let us first create and configure our Azure Web App:

Create an instance:

  • Name: The name of your choice that is still available

  • Publish: Code

  • Runtime staci: Node 12 LTS

  • Operating System: Windows

  • Region: select near you Create Instance

  • Sku and Size: select B1 (minimum) Sku and Size

Configure the Environment variables:

  • Add the following key-value pairs: Environment variables

  • For the HOST make a ping to your .azurewebsites.net instance and get the IP Ping

Configure the Platform Settings

  • In the General Settings tab (beside the Application Settings), change the Platform from 32 Bit to 64 Bit Platform config

  • To confirm if you are indeed now on 64 Bit mode, go to Console and run node -p "process.arch" 64bit

Install yarn: Go again to Console and run: npm install -g yarn Yarn

Deploy from your github account a copy of strapi-azure repo

  • In the Deployment Center tab, connect your GitHub account and browse your copy of strapi-azure Wizard1

  • Select App Service build service as your build provider Wizard2

  • Select repository and branch Wizard3

  • Deploy! Successfully deployed

Build your Admin UI using Kudu service

  • Go to Advance Tools -> Go -> expand Debug console from the toolbar -> CMD
  • Inside the wwwroot directory (site/wwwroot/), execute yarn build

Excute yarn build

Admin UI built

See it in action 😊

Production live mode

like image 92
Jay Avatar answered Dec 11 '25 21:12

Jay



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!