Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions templates/bin/deploy.cmd.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
echo Installing NPM packages...
call npm install

if exist ".\\{{projectName}}.zip" (
if exist "..\\{{projectName}}.zip" (
echo ZIP package exists, deleting.
del ".\\{{projectName}}.zip"
del "..\\{{projectName}}.zip"
)

echo Creating ZIP package...
Expand All @@ -15,10 +15,10 @@ echo Creating resource group...
call az group create -n "{{azureRgName}}" -l "{{azureRegion}}"

echo Creating resources...
call az group deployment create -g "{{azureRgName}}" --template-file .\deployment\template.json --parameters ..\deployment\parameters.json
call az group deployment create -g "{{azureRgName}}" --template-file ..\deployment\template.json --parameters ..\deployment\parameters.json

echo Deploying...
call az {{#if azureServerless}}functionapp{{else}}webapp{{/if}} deployment source config-zip -g "{{azureRgName}}" -n "{{azureAppName}}" --src ".\\{{projectName}}.zip"
call az {{#if azureServerless}}functionapp{{else}}webapp{{/if}} deployment source config-zip -g "{{azureRgName}}" -n "{{azureAppName}}" --src "..\\{{projectName}}.zip"

echo Done.
{{/if}}