[Tutorial] How to Deploy your Alexa Skill and Google Action to Heroku


#1

In this guide, you will learn how to host your voice apps on Heroku, a cloud service that offers an easy solution for developers to deploy, manage, and scale their code. We will walk you through the process of creating a Heroku app and modifying your code step by step.


This is a companion discussion topic for the original entry at https://www.jovo.tech/tutorials/deploy-to-heroku

#2

I did everything … but when i run it on Heroku i get the following error:

2019-07-18T08:07:15.818627+00:00 app[web.1]: Local server listening on port 3000.

2019-07-18T08:08:14.322987+00:00 heroku[web.1]: State changed from starting to crashed

2019-07-18T08:08:14.220600+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch

2019-07-18T08:08:14.220707+00:00 heroku[web.1]: Stopping process with SIGKILL

2019-07-18T08:08:14.302698+00:00 heroku[web.1]: Process exited with status 137

Any idea?


#3

Hello I am facing a problem, I am working on it from 3 days ago but no success, with Deploying my project Alexa skills that made by jovo , i have uploaded my file on github : https://github.com/mootu1980/HelloWorld2 , you can look at files there and I did everything mentioned in this link https://www.jovo.tech/tutorials/deploy-to-heroku , but no success even I changed and added the right node version to package.json file but it keeps giving me Errors, I will upload for you the error to image to see them , please help me with this Screen1


#4

Maybe this is not the main cause of the problem, but you need to add /webhook to your endpoint in the Alexa console


#5

I did it did not work, my conclusion that jovo does not run on Heroku , I am trying this from more than 10 days nothing working,
that is the Files on Github https://github.com/mootu1980/helloworld
you can look at it I did everything it can be done
and also during deployment you can see this problem ( NPM_CONFIG_LOGLEVEL=error ) but i think there is a problem from jovo not from Heroku, I think you have to work on it or post a video to show people how it works. you can try to deploy it from the file i have included and check that on Heroku from View Logs Section


#6

Just figured this out. What you need to do is change the code in ‘.src/index.js’

Heroku dynamically assigns a port to your app and sets that number in process.env.PORT. Jovo looks for process.env.JOVO_PORT or defaults to port 3000.

Just change line 12 of index.js from:

  const port = process.env.JOVO_PORT || 3000;

to

  const port = process.env.PORT || 3000;

When you run push to Heroku it will fire up and, you will get a message like:

Local server listening on port 36293.

This will still run locally on 3000 (unless you supply an environment variable) but will host on Heroku’s dynamic port. You will still access your site externally from port 80 / 443.


Deployment on production and heroku
#7

web on document is different from current project ?
do we add Lambda ?
const { ExpressJS, Lambda, Webhook } = require(‘jovo-framework’);