jovotech / jovo-framework

🔈 The React for Voice and Chat: Build Apps for Alexa, Messenger, Instagram, the Web, and more
https://www.jovo.tech
Apache License 2.0
1.67k stars 310 forks source link

Endpoint setting ignored when deploying #222

Closed mxmtsk closed 6 years ago

mxmtsk commented 6 years ago

I'm submitting a...

Expected Behavior

The endpoint in the Alexa Developer Console should be set to the Lambda ARN

Current Behavior

My settings are ignored. After I deployed the endpoint in the Alexa Developer Console is always set to the jovo.cloud webhook, instead of the Lambda arn directly. This is my app.json production stage settings:

"prod": {
    "endpoint": "arn:xxxxxxx",
    "host": {
        "lambda": {
            "arn": "arn:xxxx",
            "askProfile": "xxxx"
        }
    }
}

I'm deploying with this command:

jovo deploy --platform alexaSkill --project-id my-skill-id --stage prod --ask-profile my-ask-profile

This is the output of the console:

   ✔ Deploying Alexa Skill (stage: prod)
     ✔ Updating Alexa Skill project for ASK profile xxxx
       Skill Name: xxxx (de-DE)
       Skill ID: xxxx
       Invocation Name: xxxx (de-DE)
       Endpoint: https://webhook.jovo.cloud/endpoint-id
     ✔ Deploying Interaction Model, waiting for build
       ✔ de-DE
     ✔ Uploading to lambda
       Deployed to lambda function: arn:xxxxx

Am i missing or missunderstanding something here?

Your Environment

jankoenig commented 6 years ago

Did you do jovo build --stage prod before the deploy command? The build command updates the files in the platforms folder, deploy then uploads these to the platforms.

mxmtsk commented 6 years ago

Thanks, that's what I missed or missunderstood. I was under the impression that deploying the skill will build it before