简体   繁体   中英

How Run script on Azure App Service Linux

I made a sh script that is supposed to do a package installation. I specify to play this script in the start command but nothing happens. This script seems to be ignored. I'm on a.net 7 linux service app.

在此处输入图像描述

在此处输入图像描述

  • As specified in this MS Doc , you need to provide the file path to be run for starting up the container with that page such as /home/site/deployments/tools/deploy.sh in the above highlighted startup command section.

  • Also, can provide in the format of do.net <app_name>.dll which will be executed before the application starts and if the application is framework dependent.

  • I found the similar example here , practically provided by @ ZebRawnsley that helps to solve your requirement and the command you have entered in Startup command box is similar to Python Shell Script command execution, where that procedure is also mentioned in this SO Thread for running the Shell Script before the application starts using Startup Command.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM