Custom deployment script is override by composer extension

Boaz Ron 1 Reputation point
2020-08-06T06:44:12.523+00:00

Hi,

I'm trying to deploy a PHP website from bitbucket to a windows web app.
I have in my project root folder the ".deployment" and "deploy.cmd" files for my custom deployment script.

After installing the composer extension, this environment variable was added:
APPSETTING_COMMAND = D:\home\SiteExtensions\ComposerExtension\Hooks\deploy.cmd
and now the custom script is executing from this path and not from the repository root.

I couldn't find a way to remove or reset this variable and I need the composer extension to manage my app.
Any idea how to run the local deployment script?

Thanks,
Boaz

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,902 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 21,691 Reputation points
    2020-08-06T09:54:07.847+00:00

    Thanks for asking question! If I have understood right you want App Service to run Composer at deployment time. If so, you need to include the Composer in your repository.

    You may follow this official document: https://learn.microsoft.com/en-us/azure/app-service/configure-language-php#run-composer

    Let me know if issue persists.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.