Skip to content

service hook: unable to determine script type #1579

Description

@weikanglim

Error message should be moer user-friendly. I'm still unsure what happened.

todo-nodejs with the following applied, running on Windows.

  web:
    project: ./src/web
    dist: build
    language: js
    host: appservice
    hooks:
      predeploy:
        shell: sh
        run: npm run test
        interactive: true       
PS C:\demos\todo> azd deploy   

Deploying services (azd deploy)

  (✓) Done: Deploying service api
  - Endpoint: https://app-api-xxxx.azurewebsites.net/
  (✓) Done: Deploying service web

ERROR: deploying service: failed invoking event handlers for 'predeploy', failed running scripts for hooks 'deploy', hook configuration for 'predeploy' is invalid, unable to determine script type. Ensure 'Shell' parameter is set in configuration options

Metadata

Metadata

Assignees

Labels

area/extensionsExtensions (general)bugSomething isn't working

Type

Fields

No fields configured for Bug.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions