rsm-hcd / AndcultureCode.Cli

and-cli command-line tool to manage the development of software applications
https://andculture.com
Apache License 2.0
14 stars 15 forks source link

Fix azure-web-app deploy command to work on Linux systems #113

Open Stefanie899 opened 4 years ago

Stefanie899 commented 4 years ago

There are two issues with deploying to Azure from a Linux system with the current implementation.

First, in and-cli-deploy-azure-web-app.js where we call git remote add... on line 49, the URL of the remote that gets added is invalid, because the username response from Azure includes the $ symbol, effectively attempting to get an environment variable that doesn't exist. This could likely be solved by simply adding quotation marks around the URL.

Second, in that same file and on that same line, the URL returned from Azure appears to be invalid on Linux systems (at least in the case of a Ubuntu VM on Azure, running version 18.04 of Ubuntu). The apparent issue is that the URL returned does not precisely match the Git Clone Uri found in the Deployment Center for an Azure App Service. Specifically it's missing the xx.git portion at the end, where xx is the name of the App Service.