Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Virtual Application post deployment script #6350

Merged
merged 2 commits into from
Feb 2, 2018

Conversation

vincent1173
Copy link
Contributor

@vincent1173 vincent1173 commented Feb 2, 2018

Post deployment scripts were executed in root path instead of virtual path, when provided.
This fails the CDP tests.

@vincent1173 vincent1173 added Area: Release Area: AzureAppService Label to monitor Azure App Service issues labels Feb 2, 2018
try {
directoryPath = (!!directoryPath) ? directoryPath : physicalRootPath.substring(1);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what does physicalRootPath.substring(1) do?

Copy link
Contributor Author

@vincent1173 vincent1173 Feb 2, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In api/command API, we pass the command and the path (where we need to run ).
Path shouldn't contain forward slash, if it contains then it considered as absolute path in Linux.
physicalRootPath contains slash prefix and we are removing it.

@vincent1173 vincent1173 merged commit 61d7ffa into master Feb 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: AzureAppService Label to monitor Azure App Service issues Area: Release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants