5
respostas

Erro após Fazer Deploy no Heroku

Consegui realizar o deploy da minha aplicação no Heroku perfeitamente, não gerou nenhum erro, porém ao acessar o link da aplicação "https://cdc-nodedj1.herokuapp.com/" é lançada a seguinte mensagem de erro no navegador: Erro no Servidor... É o erro 500 implementado no express.js

    app.use(function(error,req,res,next){
        if (process.env.NODE_ENV == 'production') {
            res.status(500).render('erros/500');
            return;
        }
        next(errors);
    });

Ao tentar acessar a rota https://cdc-nodedj1.herokuapp.com/produtos/form para cadastrar um novo livro a página de cadastro é aberta sem erro e consigo cadastrar um livro novo e após o cadastro ao ser redirecionado para a página https://cdc-nodedj1.herokuapp.com/produtos é lançada a seguinte mensagem de erro no navegador: Application error An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details.

Alguém saberia me dizer o que pode estar ocasionando esses 2 (erros)?

Agradeço desde já.

5 respostas

Jorgito, tudo bem ?

Cara acabei de fazer um teste aqui e deu tudo certo !

Dá uma olhada ai

Matheus, Você acessou o link https://cdc-nodedj1.herokuapp.com/ e não apresentou nenhum erro? Eu tentei em 2 PC diferentes e ambos não abrem, apresenta o erro mencionado.

Agora deu erro :(

Você consegue pegar o erro dentro do heroku, lá você tem o terminal.

Mas ainda assim estou achando estranho porque havia funcionado

Estou tendo o mesmo problema, estou caindo no erro 500 quando abro o heroku... https://estudo-nodejs-1.herokuapp.com/

aparece isso no heroku logs --tail. Percebi um erro no index.ejs e na hora de inicializar o app (! Entity not found /appapp/infra)

2017-07-20T20:54:18.060992+00:00 heroku[router]: at=info method=GET path="/socket.io/?EIO=3&transport=polling&t=LrXnvgZ" host=estudo-nodejs-1.herokuapp.com request_id=379a356c-601d-49ed-9bad-52ef14e91e58 fwd="177.235.93.89" dyno=web.1 connect=0ms service=4ms status=200 bytes=328 protocol=https
2017-07-20T20:54:18.068935+00:00 app[web.1]: Opa, usuário conectado!
2017-07-20T20:54:20.898988+00:00 heroku[router]: at=info method=GET path="/" host=estudo-nodejs-1.herokuapp.com request_id=1b7b5359-1706-4672-a139-eac5b904e804 fwd="177.235.93.89" dyno=web.1 connect=0ms service=230ms status=500 bytes=355 protocol=https
2017-07-20T20:55:43.110718+00:00 app[web.1]: Usuário desconectado :(
2017-07-20T21:05:52.000000+00:00 app[api]: Build started by user icaroofigueiredo@gmail.com
2017-07-20T21:06:02.066836+00:00 heroku[web.1]: Restarting
2017-07-20T21:06:02.067395+00:00 heroku[web.1]: State changed from up to starting
2017-07-20T21:06:01.754526+00:00 app[api]: Release v5 created by user icaroofigueiredo@gmail.com
2017-07-20T21:06:01.754526+00:00 app[api]: Deploy 39b41766 by user icaroofigueiredo@gmail.com
2017-07-20T21:06:02.830973+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2017-07-20T21:06:02.912771+00:00 app[web.1]: Error waiting for process to terminate: No child processes
2017-07-20T21:06:03.023671+00:00 heroku[web.1]: Process exited with status 22
2017-07-20T21:05:52.000000+00:00 app[api]: Build succeeded
2017-07-20T21:06:04.555188+00:00 heroku[web.1]: Starting process with command `npm start`
2017-07-20T21:06:08.941139+00:00 app[web.1]:
2017-07-20T21:06:08.941155+00:00 app[web.1]: > icaro@1.0.0 start /app
2017-07-20T21:06:08.941156+00:00 app[web.1]: > node app.js
2017-07-20T21:06:08.941157+00:00 app[web.1]:
2017-07-20T21:06:09.762270+00:00 app[web.1]: express-load: Converting extension list to regular expression
2017-07-20T21:06:09.764088+00:00 app[web.1]: express-load: Using regular expression/(.*)(\.js$|\.node$|\.json$|\.coffee$|\.sjs)/for extenstion matching
2017-07-20T21:06:09.771936+00:00 app[web.1]: express-load: Loaded *.routes.home
2017-07-20T21:06:09.773877+00:00 app[web.1]: express-load: Loaded *.routes.produtos
2017-07-20T21:06:09.779101+00:00 app[web.1]: express-load: Loaded *.routes.promocoes
2017-07-20T21:06:09.780062+00:00 app[web.1]: express-load: Loaded *.infra.ProdutosDAO
2017-07-20T21:06:09.781902+00:00 app[web.1]: express-load: Loaded *.infra.connectionFactory
2017-07-20T21:06:09.782156+00:00 app[web.1]: express-load: All things loaded
2017-07-20T21:06:09.861327+00:00 app[web.1]: Example app listening at http://:::25711
2017-07-20T21:06:10.037766+00:00 heroku[web.1]: State changed from starting to up
2017-07-20T21:06:11.392264+00:00 heroku[router]: at=info method=GET path="/" host=estudo-nodejs-1.herokuapp.com request_id=0060ad2c-ce32-4345-a60d-b32b868fdd0c fwd="177.235.93.89" dyno=web.1 connect=1ms service=400ms status=500 bytes=355 protocol=https
2017-07-20T21:10:30.000000+00:00 app[api]: Build started by user icaroofigueiredo@gmail.com
2017-07-20T21:10:41.603196+00:00 heroku[web.1]: Restarting
2017-07-20T21:10:41.603915+00:00 heroku[web.1]: State changed from up to starting
2017-07-20T21:10:41.224076+00:00 app[api]: Release v6 created by user icaroofigueiredo@gmail.com
2017-07-20T21:10:30.000000+00:00 app[api]: Build succeeded
2017-07-20T21:10:41.224076+00:00 app[api]: Deploy fce82a18 by user icaroofigueiredo@gmail.com
2017-07-20T21:10:42.387543+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2017-07-20T21:10:42.550100+00:00 heroku[web.1]: Process exited with status 143
2017-07-20T21:10:43.370781+00:00 heroku[web.1]: Starting process with command `npm start`
2017-07-20T21:10:46.197757+00:00 app[web.1]:
2017-07-20T21:10:46.197772+00:00 app[web.1]: > icaro@1.0.0 start /app
2017-07-20T21:10:46.197773+00:00 app[web.1]: > node app.js
2017-07-20T21:10:46.197773+00:00 app[web.1]:
2017-07-20T21:10:47.346863+00:00 app[web.1]: consign v0.1.6 Initialized in /app
2017-07-20T21:10:47.348496+00:00 app[web.1]: ! Entity not found /app/infra
2017-07-20T21:10:47.414806+00:00 app[web.1]: Example app listening at http://:::44051
2017-07-20T21:10:47.945811+00:00 heroku[web.1]: State changed from starting to up
2017-07-20T21:11:09.701558+00:00 heroku[router]: at=info method=GET path="/" host=estudo-nodejs-1.herokuapp.com request_id=19c1b416-e2b2-402b-948f-0efbb7f0ebd1 fwd="177.235.93.89" dyno=web.1 connect=0ms service=24ms status=404 bytes=343 protocol=https
2017-07-20T21:12:59.301130+00:00 heroku[router]: at=info method=GET path="/" host=estudo-nodejs-1.herokuapp.com request_id=8fb6d16a-f95c-4a20-9a27-b5c2b8a8c42f fwd="177.235.93.89" dyno=web.1 connect=1ms service=6ms status=404 bytes=343 protocol=https
2017-07-20T21:13:03.757764+00:00 heroku[router]: at=info method=GET path="/produtos/form" host=estudo-nodejs-1.herokuapp.com request_id=948cc0e0-af02-4075-b1c7-65c9d0114fd5 fwd="177.235.93.89" dyno=web.1 connect=1ms service=4ms status=404 bytes=343 protocol=https
2017-07-20T21:14:09.000000+00:00 app[api]: Build started by user icaroofigueiredo@gmail.com
2017-07-20T21:14:18.920355+00:00 app[api]: Deploy 65258c2d by user icaroofigueiredo@gmail.com
2017-07-20T21:14:18.920355+00:00 app[api]: Release v7 created by user icaroofigueiredo@gmail.com
2017-07-20T21:14:20.530887+00:00 heroku[web.1]: Restarting
2017-07-20T21:14:20.531327+00:00 heroku[web.1]: State changed from up to starting
2017-07-20T21:14:21.576450+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2017-07-20T21:14:21.728289+00:00 heroku[web.1]: Process exited with status 143
2017-07-20T21:14:21.814933+00:00 heroku[web.1]: Starting process with command `npm start`
2017-07-20T21:14:09.000000+00:00 app[api]: Build succeeded
2017-07-20T21:14:23.358721+00:00 app[web.1]:
2017-07-20T21:14:23.358734+00:00 app[web.1]: > icaro@1.0.0 start /app
2017-07-20T21:14:23.358735+00:00 app[web.1]: > node app.js
2017-07-20T21:14:23.358735+00:00 app[web.1]:
2017-07-20T21:14:23.764362+00:00 app[web.1]: consign v0.1.6 Initialized in /appapp
2017-07-20T21:14:23.765553+00:00 app[web.1]: ! Entity not found /appapp/infra
2017-07-20T21:14:23.815182+00:00 app[web.1]: Example app listening at http://:::26579
2017-07-20T21:14:23.933166+00:00 heroku[web.1]: State changed from starting to up
2017-07-20T21:14:46.212070+00:00 heroku[router]: at=info method=GET path="/produtos/form" host=estudo-nodejs-1.herokuapp.com request_id=5c4e567a-966d-44d8-9ac1-ccff8b12aad3 fwd="177.235.93.89" dyno=web.1 connect=0ms service=22ms status=404 bytes=343 protocol=https
2017-07-20T21:14:50.806347+00:00 heroku[router]: at=info method=GET path="/" host=estudo-nodejs-1.herokuapp.com request_id=ccac2e82-9f2b-4a6b-8171-59b356545ee9 fwd="177.235.93.89" dyno=web.1 connect=1ms service=5ms status=404 bytes=343 protocol=https
2017-07-20T21:15:35.000000+00:00 app[api]: Build started by user icaroofigueiredo@gmail.com
2017-07-20T21:15:44.364177+00:00 app[api]: Release v8 created by user icaroofigueiredo@gmail.com
2017-07-20T21:15:44.364177+00:00 app[api]: Deploy ab0dc423 by user icaroofigueiredo@gmail.com
2017-07-20T21:15:35.000000+00:00 app[api]: Build succeeded
2017-07-20T21:15:45.324235+00:00 heroku[web.1]: Restarting
2017-07-20T21:15:45.324816+00:00 heroku[web.1]: State changed from up to starting
2017-07-20T21:15:45.816178+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2017-07-20T21:15:45.877110+00:00 heroku[web.1]: Process exited with status 143
2017-07-20T21:15:50.286449+00:00 heroku[web.1]: Starting process with command `npm start`
2017-07-20T21:15:52.591289+00:00 app[web.1]:
2017-07-20T21:15:52.591304+00:00 app[web.1]: > icaro@1.0.0 start /app
2017-07-20T21:15:52.591306+00:00 app[web.1]:
2017-07-20T21:15:52.591305+00:00 app[web.1]: > node app.js
2017-07-20T21:15:53.191285+00:00 app[web.1]: express-load: Converting extension list to regular expression
2017-07-20T21:15:53.192481+00:00 app[web.1]: express-load: Using regular expression/(.*)(\.js$|\.node$|\.json$|\.coffee$|\.sjs)/for extenstion matching
2017-07-20T21:15:53.195684+00:00 app[web.1]: express-load: Loaded *.routes.home
2017-07-20T21:15:53.196704+00:00 app[web.1]: express-load: Loaded *.routes.produtos
2017-07-20T21:15:53.197702+00:00 app[web.1]: express-load: Loaded *.infra.ProdutosDAO
2017-07-20T21:15:53.198922+00:00 app[web.1]: express-load: Loaded *.infra.connectionFactory
2017-07-20T21:15:53.199005+00:00 app[web.1]: express-load: All things loaded
2017-07-20T21:15:53.197246+00:00 app[web.1]: express-load: Loaded *.routes.promocoes
2017-07-20T21:15:53.248913+00:00 app[web.1]: Example app listening at http://:::53714
2017-07-20T21:15:53.962683+00:00 heroku[web.1]: State changed from starting to up
2017-07-20T21:16:23.089474+00:00 heroku[router]: at=info method=GET path="/" host=estudo-nodejs-1.herokuapp.com request_id=4e4c6b96-229a-410c-a5d5-38f7462f4cfa fwd="177.235.93.89" dyno=web.1 connect=0ms service=1145ms status=500 bytes=355 protocol=https
2017-07-20T21:16:23.079133+00:00 app[web.1]: { [TypeError: /app/app/views/home/index.ejs:93
2017-07-20T21:16:23.079158+00:00 app[web.1]:  >> 93|                 <img width="170" height="240" src="//cdn.shopify.com/s/files/1/0155/7645/products/nodejs-featured_large.png?v=1411486494" alt="<%=livros[i].titulo%>" title="<%=livros[i].titulo%>"/>
2017-07-20T21:16:23.079151+00:00 app[web.1]:     91|         <li class="col-left">
2017-07-20T21:16:23.079152+00:00 app[web.1]:     92|             <a href="linkDetalhe" class="block clearfix">
2017-07-20T21:16:23.079160+00:00 app[web.1]:     95|                 <h2 class="product-title"><%=livros[i].titulo%></h2>
2017-07-20T21:16:23.079160+00:00 app[web.1]:     96|                 <small class="buy-button">Lan&#231;amento!</small>
2017-07-20T21:16:23.079159+00:00 app[web.1]:     94|
2017-07-20T21:16:23.079161+00:00 app[web.1]:
2017-07-20T21:16:23.079162+00:00 app[web.1]: Cannot read property '0' of undefined] path: '/app/app/views/home/index.ejs' }
2017-07-20T21:18:29.202537+00:00 heroku[router]: at=info method=GET path="/" host=estudo-nodejs-1.herokuapp.com request_id=b1598b80-606b-4488-a917-82d7711426e9 fwd="177.235.93.89" dyno=web.1 connect=0ms service=472ms status=500 bytes=355 protocol=https
2017-07-20T21:18:29.198136+00:00 app[web.1]: { [TypeError: /app/app/views/home/index.ejs:93
2017-07-20T21:18:29.198148+00:00 app[web.1]:     91|         <li class="col-left">
2017-07-20T21:18:29.198150+00:00 app[web.1]:     92|             <a href="linkDetalhe" class="block clearfix">
2017-07-20T21:18:29.198152+00:00 app[web.1]:  >> 93|                 <img width="170" height="240" src="//cdn.shopify.com/s/files/1/0155/7645/products/nodejs-featured_large.png?v=1411486494" alt="<%=livros[i].titulo%>" title="<%=livros[i].titulo%>"/>
2017-07-20T21:18:29.198153+00:00 app[web.1]:     94|
2017-07-20T21:18:29.198153+00:00 app[web.1]:     95|                 <h2 class="product-title"><%=livros[i].titulo%></h2>
2017-07-20T21:18:29.198154+00:00 app[web.1]:     96|                 <small class="buy-button">Lan&#231;amento!</small>
2017-07-20T21:18:29.198154+00:00 app[web.1]:
2017-07-20T21:18:29.198155+00:00 app[web.1]: Cannot read property '0' of undefined] path: '/app/app/views/home/index.ejs' }
^[[A^CMacBook-Air-de-Icaro:cópia de NodeJS Icaro$ heroku logs
2017-07-20T21:06:02.912771+00:00 app[web.1]: Error waiting for process to terminate: No child processes
2017-07-20T21:06:03.023671+00:00 heroku[web.1]: Process exited with status 22
2017-07-20T21:05:52.000000+00:00 app[api]: Build succeeded
2017-07-20T21:06:04.555188+00:00 heroku[web.1]: Starting process with command `npm start`
2017-07-20T21:06:08.941139+00:00 app[web.1]:
2017-07-20T21:06:08.941155+00:00 app[web.1]: > icaro@1.0.0 start /app
2017-07-20T21:06:08.941156+00:00 app[web.1]: > node app.js
2017-07-20T21:06:08.941157+00:00 app[web.1]:
2017-07-20T21:06:09.762270+00:00 app[web.1]: express-load: Converting extension list to regular expression
2017-07-20T21:06:09.764088+00:00 app[web.1]: express-load: Using regular expression/(.*)(\.js$|\.node$|\.json$|\.coffee$|\.sjs)/for extenstion matching
2017-07-20T21:06:09.771936+00:00 app[web.1]: express-load: Loaded *.routes.home
2017-07-20T21:06:09.773877+00:00 app[web.1]: express-load: Loaded *.routes.produtos
2017-07-20T21:06:09.779101+00:00 app[web.1]: express-load: Loaded *.routes.promocoes
2017-07-20T21:06:09.780062+00:00 app[web.1]: express-load: Loaded *.infra.ProdutosDAO
2017-07-20T21:06:09.781902+00:00 app[web.1]: express-load: Loaded *.infra.connectionFactory
2017-07-20T21:06:09.782156+00:00 app[web.1]: express-load: All things loaded
2017-07-20T21:06:09.861327+00:00 app[web.1]: Example app listening at http://:::25711
2017-07-20T21:06:10.037766+00:00 heroku[web.1]: State changed from starting to up
2017-07-20T21:06:11.392264+00:00 heroku[router]: at=info method=GET path="/" host=estudo-nodejs-1.herokuapp.com request_id=0060ad2c-ce32-4345-a60d-b32b868fdd0c fwd="177.235.93.89" dyno=web.1 connect=1ms service=400ms status=500 bytes=355 protocol=https
2017-07-20T21:10:30.000000+00:00 app[api]: Build started by user icaroofigueiredo@gmail.com
2017-07-20T21:10:41.603196+00:00 heroku[web.1]: Restarting
2017-07-20T21:10:41.603915+00:00 heroku[web.1]: State changed from up to starting
2017-07-20T21:10:41.224076+00:00 app[api]: Release v6 created by user icaroofigueiredo@gmail.com
2017-07-20T21:10:30.000000+00:00 app[api]: Build succeeded
2017-07-20T21:10:41.224076+00:00 app[api]: Deploy fce82a18 by user icaroofigueiredo@gmail.com
2017-07-20T21:10:42.387543+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2017-07-20T21:10:42.550100+00:00 heroku[web.1]: Process exited with status 143
2017-07-20T21:10:43.370781+00:00 heroku[web.1]: Starting process with command `npm start`
2017-07-20T21:10:46.197757+00:00 app[web.1]:
2017-07-20T21:10:46.197772+00:00 app[web.1]: > icaro@1.0.0 start /app
2017-07-20T21:10:46.197773+00:00 app[web.1]: > node app.js
2017-07-20T21:10:46.197773+00:00 app[web.1]:
2017-07-20T21:10:47.346863+00:00 app[web.1]: consign v0.1.6 Initialized in /app
2017-07-20T21:10:47.348496+00:00 app[web.1]: ! Entity not found /app/infra
2017-07-20T21:10:47.414806+00:00 app[web.1]: Example app listening at http://:::44051
2017-07-20T21:10:47.945811+00:00 heroku[web.1]: State changed from starting to up
2017-07-20T21:11:09.701558+00:00 heroku[router]: at=info method=GET path="/" host=estudo-nodejs-1.herokuapp.com request_id=19c1b416-e2b2-402b-948f-0efbb7f0ebd1 fwd="177.235.93.89" dyno=web.1 connect=0ms service=24ms status=404 bytes=343 protocol=https
2017-07-20T21:12:59.301130+00:00 heroku[router]: at=info method=GET path="/" host=estudo-nodejs-1.herokuapp.com request_id=8fb6d16a-f95c-4a20-9a27-b5c2b8a8c42f fwd="177.235.93.89" dyno=web.1 connect=1ms service=6ms status=404 bytes=343 protocol=https
2017-07-20T21:13:03.757764+00:00 heroku[router]: at=info method=GET path="/produtos/form" host=estudo-nodejs-1.herokuapp.com request_id=948cc0e0-af02-4075-b1c7-65c9d0114fd5 fwd="177.235.93.89" dyno=web.1 connect=1ms service=4ms status=404 bytes=343 protocol=https
2017-07-20T21:14:09.000000+00:00 app[api]: Build started by user icaroofigueiredo@gmail.com
2017-07-20T21:14:18.920355+00:00 app[api]: Deploy 65258c2d by user icaroofigueiredo@gmail.com
2017-07-20T21:14:18.920355+00:00 app[api]: Release v7 created by user icaroofigueiredo@gmail.com
2017-07-20T21:14:20.530887+00:00 heroku[web.1]: Restarting
2017-07-20T21:14:20.531327+00:00 heroku[web.1]: State changed from up to starting
2017-07-20T21:14:21.576450+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2017-07-20T21:14:21.728289+00:00 heroku[web.1]: Process exited with status 143
2017-07-20T21:14:21.814933+00:00 heroku[web.1]: Starting process with command `npm start`
2017-07-20T21:14:09.000000+00:00 app[api]: Build succeeded
2017-07-20T21:14:23.358721+00:00 app[web.1]:
2017-07-20T21:14:23.358734+00:00 app[web.1]: > icaro@1.0.0 start /app
2017-07-20T21:14:23.358735+00:00 app[web.1]: > node app.js
2017-07-20T21:14:23.358735+00:00 app[web.1]:
2017-07-20T21:14:23.764362+00:00 app[web.1]: consign v0.1.6 Initialized in /appapp
2017-07-20T21:14:23.765553+00:00 app[web.1]: ! Entity not found /appapp/infra
2017-07-20T21:14:23.815182+00:00 app[web.1]: Example app listening at http://:::26579
2017-07-20T21:14:23.933166+00:00 heroku[web.1]: State changed from starting to up
2017-07-20T21:14:46.212070+00:00 heroku[router]: at=info method=GET path="/produtos/form" host=estudo-nodejs-1.herokuapp.com request_id=5c4e567a-966d-44d8-9ac1-ccff8b12aad3 fwd="177.235.93.89" dyno=web.1 connect=0ms service=22ms status=404 bytes=343 protocol=https
2017-07-20T21:14:50.806347+00:00 heroku[router]: at=info method=GET path="/" host=estudo-nodejs-1.herokuapp.com request_id=ccac2e82-9f2b-4a6b-8171-59b356545ee9 fwd="177.235.93.89" dyno=web.1 connect=1ms service=5ms status=404 bytes=343 protocol=https
2017-07-20T21:15:35.000000+00:00 app[api]: Build started by user icaroofigueiredo@gmail.com
2017-07-20T21:15:44.364177+00:00 app[api]: Release v8 created by user icaroofigueiredo@gmail.com
2017-07-20T21:15:44.364177+00:00 app[api]: Deploy ab0dc423 by user icaroofigueiredo@gmail.com
2017-07-20T21:15:35.000000+00:00 app[api]: Build succeeded
2017-07-20T21:15:45.324235+00:00 heroku[web.1]: Restarting
2017-07-20T21:15:45.324816+00:00 heroku[web.1]: State changed from up to starting
2017-07-20T21:15:45.816178+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2017-07-20T21:15:45.877110+00:00 heroku[web.1]: Process exited with status 143
2017-07-20T21:15:50.286449+00:00 heroku[web.1]: Starting process with command `npm start`
2017-07-20T21:15:52.591289+00:00 app[web.1]:
2017-07-20T21:15:52.591304+00:00 app[web.1]: > icaro@1.0.0 start /app
2017-07-20T21:15:52.591306+00:00 app[web.1]:
2017-07-20T21:15:52.591305+00:00 app[web.1]: > node app.js
2017-07-20T21:15:53.191285+00:00 app[web.1]: express-load: Converting extension list to regular expression
2017-07-20T21:15:53.192481+00:00 app[web.1]: express-load: Using regular expression/(.*)(\.js$|\.node$|\.json$|\.coffee$|\.sjs)/for extenstion matching
2017-07-20T21:15:53.195684+00:00 app[web.1]: express-load: Loaded *.routes.home
2017-07-20T21:15:53.196704+00:00 app[web.1]: express-load: Loaded *.routes.produtos
2017-07-20T21:15:53.197702+00:00 app[web.1]: express-load: Loaded *.infra.ProdutosDAO
2017-07-20T21:15:53.198922+00:00 app[web.1]: express-load: Loaded *.infra.connectionFactory
2017-07-20T21:15:53.199005+00:00 app[web.1]: express-load: All things loaded
2017-07-20T21:15:53.197246+00:00 app[web.1]: express-load: Loaded *.routes.promocoes
2017-07-20T21:15:53.248913+00:00 app[web.1]: Example app listening at http://:::53714
2017-07-20T21:15:53.962683+00:00 heroku[web.1]: State changed from starting to up
2017-07-20T21:16:23.089474+00:00 heroku[router]: at=info method=GET path="/" host=estudo-nodejs-1.herokuapp.com request_id=4e4c6b96-229a-410c-a5d5-38f7462f4cfa fwd="177.235.93.89" dyno=web.1 connect=0ms service=1145ms status=500 bytes=355 protocol=https
2017-07-20T21:16:23.079133+00:00 app[web.1]: { [TypeError: /app/app/views/home/index.ejs:93
2017-07-20T21:16:23.079158+00:00 app[web.1]:  >> 93|                 <img width="170" height="240" src="//cdn.shopify.com/s/files/1/0155/7645/products/nodejs-featured_large.png?v=1411486494" alt="<%=livros[i].titulo%>" title="<%=livros[i].titulo%>"/>
2017-07-20T21:16:23.079151+00:00 app[web.1]:     91|         <li class="col-left">
2017-07-20T21:16:23.079152+00:00 app[web.1]:     92|             <a href="linkDetalhe" class="block clearfix">
2017-07-20T21:16:23.079160+00:00 app[web.1]:     95|                 <h2 class="product-title"><%=livros[i].titulo%></h2>
2017-07-20T21:16:23.079160+00:00 app[web.1]:     96|                 <small class="buy-button">Lan&#231;amento!</small>
2017-07-20T21:16:23.079159+00:00 app[web.1]:     94|
2017-07-20T21:16:23.079161+00:00 app[web.1]:
2017-07-20T21:16:23.079162+00:00 app[web.1]: Cannot read property '0' of undefined] path: '/app/app/views/home/index.ejs' }
2017-07-20T21:18:29.202537+00:00 heroku[router]: at=info method=GET path="/" host=estudo-nodejs-1.herokuapp.com request_id=b1598b80-606b-4488-a917-82d7711426e9 fwd="177.235.93.89" dyno=web.1 connect=0ms service=472ms status=500 bytes=355 protocol=https
2017-07-20T21:18:29.198136+00:00 app[web.1]: { [TypeError: /app/app/views/home/index.ejs:93
2017-07-20T21:18:29.198148+00:00 app[web.1]:     91|         <li class="col-left">
2017-07-20T21:18:29.198153+00:00 app[web.1]:     94|
2017-07-20T21:18:29.198153+00:00 app[web.1]:     95|                 <h2 class="product-title"><%=livros[i].titulo%></h2>
2017-07-20T21:18:29.198150+00:00 app[web.1]:     92|             <a href="linkDetalhe" class="block clearfix">
2017-07-20T21:18:29.198152+00:00 app[web.1]:  >> 93|                 <img width="170" height="240" src="//cdn.shopify.com/s/files/1/0155/7645/products/nodejs-featured_large.png?v=1411486494" alt="<%=livros[i].titulo%>" title="<%=livros[i].titulo%>"/>
2017-07-20T21:18:29.198154+00:00 app[web.1]:     96|                 <small class="buy-button">Lan&#231;amento!</small>
2017-07-20T21:18:29.198154+00:00 app[web.1]:
2017-07-20T21:18:29.198155+00:00 app[web.1]: Cannot read property '0' of undefined] path: '/app/app/views/home/index.ejs' }
MacBook-Air-de-Icaro:cópia de NodeJS Icaro$ heroku logs
2017-07-20T21:06:09.771936+00:00 app[web.1]: express-load: Loaded *.routes.home
2017-07-20T21:06:09.773877+00:00 app[web.1]: express-load: Loaded *.routes.produtos
2017-07-20T21:06:09.779101+00:00 app[web.1]: express-load: Loaded *.routes.promocoes
2017-07-20T21:06:09.780062+00:00 app[web.1]: express-load: Loaded *.infra.ProdutosDAO
2017-07-20T21:06:09.781902+00:00 app[web.1]: express-load: Loaded *.infra.connectionFactory
2017-07-20T21:06:09.782156+00:00 app[web.1]: express-load: All things loaded
2017-07-20T21:06:09.861327+00:00 app[web.1]: Example app listening at http://:::25711
2017-07-20T21:06:10.037766+00:00 heroku[web.1]: State changed from starting to up
2017-07-20T21:06:11.392264+00:00 heroku[router]: at=info method=GET path="/" host=estudo-nodejs-1.herokuapp.com request_id=0060ad2c-ce32-4345-a60d-b32b868fdd0c fwd="177.235.93.89" dyno=web.1 connect=1ms service=400ms status=500 bytes=355 protocol=https
2017-07-20T21:10:30.000000+00:00 app[api]: Build started by user icaroofigueiredo@gmail.com
2017-07-20T21:10:41.603196+00:00 heroku[web.1]: Restarting
2017-07-20T21:10:41.603915+00:00 heroku[web.1]: State changed from up to starting
2017-07-20T21:10:41.224076+00:00 app[api]: Release v6 created by user icaroofigueiredo@gmail.com
2017-07-20T21:10:30.000000+00:00 app[api]: Build succeeded
2017-07-20T21:10:41.224076+00:00 app[api]: Deploy fce82a18 by user icaroofigueiredo@gmail.com
2017-07-20T21:10:42.387543+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2017-07-20T21:10:42.550100+00:00 heroku[web.1]: Process exited with status 143
2017-07-20T21:10:43.370781+00:00 heroku[web.1]: Starting process with command `npm start`
2017-07-20T21:10:46.197757+00:00 app[web.1]:
2017-07-20T21:10:46.197772+00:00 app[web.1]: > icaro@1.0.0 start /app
2017-07-20T21:10:46.197773+00:00 app[web.1]: > node app.js
2017-07-20T21:10:46.197773+00:00 app[web.1]:
2017-07-20T21:10:47.346863+00:00 app[web.1]: consign v0.1.6 Initialized in /app
2017-07-20T21:10:47.348496+00:00 app[web.1]: ! Entity not found /app/infra
2017-07-20T21:10:47.414806+00:00 app[web.1]: Example app listening at http://:::44051
2017-07-20T21:10:47.945811+00:00 heroku[web.1]: State changed from starting to up
2017-07-20T21:11:09.701558+00:00 heroku[router]: at=info method=GET path="/" host=estudo-nodejs-1.herokuapp.com request_id=19c1b416-e2b2-402b-948f-0efbb7f0ebd1 fwd="177.235.93.89" dyno=web.1 connect=0ms service=24ms status=404 bytes=343 protocol=https
2017-07-20T21:12:59.301130+00:00 heroku[router]: at=info method=GET path="/" host=estudo-nodejs-1.herokuapp.com request_id=8fb6d16a-f95c-4a20-9a27-b5c2b8a8c42f fwd="177.235.93.89" dyno=web.1 connect=1ms service=6ms status=404 bytes=343 protocol=https
2017-07-20T21:13:03.757764+00:00 heroku[router]: at=info method=GET path="/produtos/form" host=estudo-nodejs-1.herokuapp.com request_id=948cc0e0-af02-4075-b1c7-65c9d0114fd5 fwd="177.235.93.89" dyno=web.1 connect=1ms service=4ms status=404 bytes=343 protocol=https
2017-07-20T21:14:09.000000+00:00 app[api]: Build started by user icaroofigueiredo@gmail.com
2017-07-20T21:14:18.920355+00:00 app[api]: Deploy 65258c2d by user icaroofigueiredo@gmail.com
2017-07-20T21:14:18.920355+00:00 app[api]: Release v7 created by user icaroofigueiredo@gmail.com
2017-07-20T21:14:20.530887+00:00 heroku[web.1]: Restarting
2017-07-20T21:14:20.531327+00:00 heroku[web.1]: State changed from up to starting
2017-07-20T21:14:21.576450+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2017-07-20T21:14:21.728289+00:00 heroku[web.1]: Process exited with status 143
2017-07-20T21:14:21.814933+00:00 heroku[web.1]: Starting process with command `npm start`
2017-07-20T21:14:09.000000+00:00 app[api]: Build succeeded
2017-07-20T21:14:23.358721+00:00 app[web.1]:
2017-07-20T21:14:23.358734+00:00 app[web.1]: > icaro@1.0.0 start /app
2017-07-20T21:14:23.358735+00:00 app[web.1]: > node app.js
2017-07-20T21:14:23.358735+00:00 app[web.1]:
2017-07-20T21:14:23.764362+00:00 app[web.1]: consign v0.1.6 Initialized in /appapp
2017-07-20T21:14:23.765553+00:00 app[web.1]: ! Entity not found /appapp/infra
2017-07-20T21:14:23.815182+00:00 app[web.1]: Example app listening at http://:::26579
2017-07-20T21:14:23.933166+00:00 heroku[web.1]: State changed from starting to up
2017-07-20T21:14:46.212070+00:00 heroku[router]: at=info method=GET path="/produtos/form" host=estudo-nodejs-1.herokuapp.com request_id=5c4e567a-966d-44d8-9ac1-ccff8b12aad3 fwd="177.235.93.89" dyno=web.1 connect=0ms service=22ms status=404 bytes=343 protocol=https
2017-07-20T21:14:50.806347+00:00 heroku[router]: at=info method=GET path="/" host=estudo-nodejs-1.herokuapp.com request_id=ccac2e82-9f2b-4a6b-8171-59b356545ee9 fwd="177.235.93.89" dyno=web.1 connect=1ms service=5ms status=404 bytes=343 protocol=https
2017-07-20T21:15:35.000000+00:00 app[api]: Build started by user icaroofigueiredo@gmail.com
2017-07-20T21:15:44.364177+00:00 app[api]: Release v8 created by user icaroofigueiredo@gmail.com
2017-07-20T21:15:44.364177+00:00 app[api]: Deploy ab0dc423 by user icaroofigueiredo@gmail.com
2017-07-20T21:15:35.000000+00:00 app[api]: Build succeeded
2017-07-20T21:15:45.324235+00:00 heroku[web.1]: Restarting
2017-07-20T21:15:45.324816+00:00 heroku[web.1]: State changed from up to starting
2017-07-20T21:15:45.816178+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2017-07-20T21:15:45.877110+00:00 heroku[web.1]: Process exited with status 143
2017-07-20T21:15:50.286449+00:00 heroku[web.1]: Starting process with command `npm start`
2017-07-20T21:15:52.591289+00:00 app[web.1]:
2017-07-20T21:15:52.591304+00:00 app[web.1]: > icaro@1.0.0 start /app
2017-07-20T21:15:52.591306+00:00 app[web.1]:
2017-07-20T21:15:52.591305+00:00 app[web.1]: > node app.js
2017-07-20T21:15:53.191285+00:00 app[web.1]: express-load: Converting extension list to regular expression
2017-07-20T21:15:53.192481+00:00 app[web.1]: express-load: Using regular expression/(.*)(\.js$|\.node$|\.json$|\.coffee$|\.sjs)/for extenstion matching
2017-07-20T21:15:53.195684+00:00 app[web.1]: express-load: Loaded *.routes.home
2017-07-20T21:15:53.196704+00:00 app[web.1]: express-load: Loaded *.routes.produtos
2017-07-20T21:15:53.197702+00:00 app[web.1]: express-load: Loaded *.infra.ProdutosDAO
2017-07-20T21:15:53.198922+00:00 app[web.1]: express-load: Loaded *.infra.connectionFactory
2017-07-20T21:15:53.199005+00:00 app[web.1]: express-load: All things loaded
2017-07-20T21:15:53.197246+00:00 app[web.1]: express-load: Loaded *.routes.promocoes
2017-07-20T21:15:53.248913+00:00 app[web.1]: Example app listening at http://:::53714
2017-07-20T21:15:53.962683+00:00 heroku[web.1]: State changed from starting to up
2017-07-20T21:16:23.089474+00:00 heroku[router]: at=info method=GET path="/" host=estudo-nodejs-1.herokuapp.com request_id=4e4c6b96-229a-410c-a5d5-38f7462f4cfa fwd="177.235.93.89" dyno=web.1 connect=0ms service=1145ms status=500 bytes=355 protocol=https
2017-07-20T21:16:23.079133+00:00 app[web.1]: { [TypeError: /app/app/views/home/index.ejs:93
2017-07-20T21:16:23.079158+00:00 app[web.1]:  >> 93|                 <img width="170" height="240" src="//cdn.shopify.com/s/files/1/0155/7645/products/nodejs-featured_large.png?v=1411486494" alt="<%=livros[i].titulo%>" title="<%=livros[i].titulo%>"/>
2017-07-20T21:16:23.079151+00:00 app[web.1]:     91|         <li class="col-left">
2017-07-20T21:16:23.079152+00:00 app[web.1]:     92|             <a href="linkDetalhe" class="block clearfix">
2017-07-20T21:16:23.079160+00:00 app[web.1]:     95|                 <h2 class="product-title"><%=livros[i].titulo%></h2>
2017-07-20T21:16:23.079160+00:00 app[web.1]:     96|                 <small class="buy-button">Lan&#231;amento!</small>
2017-07-20T21:16:23.079159+00:00 app[web.1]:     94|
2017-07-20T21:16:23.079161+00:00 app[web.1]:
2017-07-20T21:16:23.079162+00:00 app[web.1]: Cannot read property '0' of undefined] path: '/app/app/views/home/index.ejs' }
2017-07-20T21:18:29.202537+00:00 heroku[router]: at=info method=GET path="/" host=estudo-nodejs-1.herokuapp.com request_id=b1598b80-606b-4488-a917-82d7711426e9 fwd="177.235.93.89" dyno=web.1 connect=0ms service=472ms status=500 bytes=355 protocol=https
2017-07-20T21:18:29.198136+00:00 app[web.1]: { [TypeError: /app/app/views/home/index.ejs:93
2017-07-20T21:18:29.198148+00:00 app[web.1]:     91|         <li class="col-left">
2017-07-20T21:18:29.198153+00:00 app[web.1]:     94|
2017-07-20T21:18:29.198153+00:00 app[web.1]:     95|                 <h2 class="product-title"><%=livros[i].titulo%></h2>
2017-07-20T21:18:29.198150+00:00 app[web.1]:     92|             <a href="linkDetalhe" class="block clearfix">
2017-07-20T21:18:29.198152+00:00 app[web.1]:  >> 93|                 <img width="170" height="240" src="//cdn.shopify.com/s/files/1/0155/7645/products/nodejs-featured_large.png?v=1411486494" alt="<%=livros[i].titulo%>" title="<%=livros[i].titulo%>"/>
2017-07-20T21:18:29.198154+00:00 app[web.1]:     96|                 <small class="buy-button">Lan&#231;amento!</small>
2017-07-20T21:18:29.198154+00:00 app[web.1]:
2017-07-20T21:18:29.198155+00:00 app[web.1]: Cannot read property '0' of undefined] path: '/app/app/views/home/index.ejs' }
2017-07-20T21:19:30.921418+00:00 app[web.1]: { [TypeError: /app/app/views/home/index.ejs:93
2017-07-20T21:19:30.921432+00:00 app[web.1]:     91|         <li class="col-left">
2017-07-20T21:19:30.921433+00:00 app[web.1]:     92|             <a href="linkDetalhe" class="block clearfix">
2017-07-20T21:19:30.921434+00:00 app[web.1]:  >> 93|                 <img width="170" height="240" src="//cdn.shopify.com/s/files/1/0155/7645/products/nodejs-featured_large.png?v=1411486494" alt="<%=livros[i].titulo%>" title="<%=livros[i].titulo%>"/>
2017-07-20T21:19:30.921435+00:00 app[web.1]:     94|
2017-07-20T21:19:30.921435+00:00 app[web.1]:     95|                 <h2 class="product-title"><%=livros[i].titulo%></h2>
2017-07-20T21:19:30.921436+00:00 app[web.1]:     96|                 <small class="buy-button">Lan&#231;amento!</small>
2017-07-20T21:19:30.921436+00:00 app[web.1]:
2017-07-20T21:19:30.921437+00:00 app[web.1]: Cannot read property '0' of undefined] path: '/app/app/views/home/index.ejs' }
2017-07-20T21:19:30.923409+00:00 heroku[router]: at=info method=GET path="/" host=estudo-nodejs-1.herokuapp.com request_id=48981efc-87a3-4b7b-98bd-5a9d3860bb85 fwd="177.235.93.89" dyno=web.1 connect=0ms service=457ms status=500 bytes=355 protocol=https
MacBook-Air-de-Icaro:cópia de NodeJS Icaro$ heroku logs --tail
2017-07-20T21:06:09.771936+00:00 app[web.1]: express-load: Loaded *.routes.home
2017-07-20T21:06:09.773877+00:00 app[web.1]: express-load: Loaded *.routes.produtos
2017-07-20T21:06:09.779101+00:00 app[web.1]: express-load: Loaded *.routes.promocoes
2017-07-20T21:06:09.780062+00:00 app[web.1]: express-load: Loaded *.infra.ProdutosDAO
2017-07-20T21:06:09.781902+00:00 app[web.1]: express-load: Loaded *.infra.connectionFactory
2017-07-20T21:06:09.782156+00:00 app[web.1]: express-load: All things loaded
2017-07-20T21:06:09.861327+00:00 app[web.1]: Example app listening at http://:::25711
2017-07-20T21:06:10.037766+00:00 heroku[web.1]: State changed from starting to up
2017-07-20T21:06:11.392264+00:00 heroku[router]: at=info method=GET path="/" host=estudo-nodejs-1.herokuapp.com request_id=0060ad2c-ce32-4345-a60d-b32b868fdd0c fwd="177.235.93.89" dyno=web.1 connect=1ms service=400ms status=500 bytes=355 protocol=https
2017-07-20T21:10:30.000000+00:00 app[api]: Build started by user icaroofigueiredo@gmail.com
2017-07-20T21:10:41.603196+00:00 heroku[web.1]: Restarting
2017-07-20T21:10:41.603915+00:00 heroku[web.1]: State changed from up to starting
2017-07-20T21:10:41.224076+00:00 app[api]: Release v6 created by user icaroofigueiredo@gmail.com
2017-07-20T21:10:30.000000+00:00 app[api]: Build succeeded
2017-07-20T21:10:41.224076+00:00 app[api]: Deploy fce82a18 by user icaroofigueiredo@gmail.com
2017-07-20T21:10:42.387543+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2017-07-20T21:10:42.550100+00:00 heroku[web.1]: Process exited with status 143
2017-07-20T21:10:43.370781+00:00 heroku[web.1]: Starting process with command `npm start`
2017-07-20T21:10:46.197757+00:00 app[web.1]:
2017-07-20T21:10:46.197772+00:00 app[web.1]: > icaro@1.0.0 start /app
2017-07-20T21:10:46.197773+00:00 app[web.1]: > node app.js
2017-07-20T21:10:46.197773+00:00 app[web.1]:
2017-07-20T21:10:47.346863+00:00 app[web.1]: consign v0.1.6 Initialized in /app
2017-07-20T21:10:47.348496+00:00 app[web.1]: ! Entity not found /app/infra
2017-07-20T21:10:47.414806+00:00 app[web.1]: Example app listening at http://:::44051
2017-07-20T21:10:47.945811+00:00 heroku[web.1]: State changed from starting to up
2017-07-20T21:11:09.701558+00:00 heroku[router]: at=info method=GET path="/" host=estudo-nodejs-1.herokuapp.com request_id=19c1b416-e2b2-402b-948f-0efbb7f0ebd1 fwd="177.235.93.89" dyno=web.1 connect=0ms service=24ms status=404 bytes=343 protocol=https
2017-07-20T21:12:59.301130+00:00 heroku[router]: at=info method=GET path="/" host=estudo-nodejs-1.herokuapp.com request_id=8fb6d16a-f95c-4a20-9a27-b5c2b8a8c42f fwd="177.235.93.89" dyno=web.1 connect=1ms service=6ms status=404 bytes=343 protocol=https
2017-07-20T21:13:03.757764+00:00 heroku[router]: at=info method=GET path="/produtos/form" host=estudo-nodejs-1.herokuapp.com request_id=948cc0e0-af02-4075-b1c7-65c9d0114fd5 fwd="177.235.93.89" dyno=web.1 connect=1ms service=4ms status=404 bytes=343 protocol=https
2017-07-20T21:14:09.000000+00:00 app[api]: Build started by user icaroofigueiredo@gmail.com
2017-07-20T21:14:18.920355+00:00 app[api]: Deploy 65258c2d by user icaroofigueiredo@gmail.com
2017-07-20T21:14:18.920355+00:00 app[api]: Release v7 created by user icaroofigueiredo@gmail.com
2017-07-20T21:14:20.530887+00:00 heroku[web.1]: Restarting
2017-07-20T21:14:20.531327+00:00 heroku[web.1]: State changed from up to starting
2017-07-20T21:14:21.576450+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2017-07-20T21:14:21.728289+00:00 heroku[web.1]: Process exited with status 143
2017-07-20T21:14:21.814933+00:00 heroku[web.1]: Starting process with command `npm start`
2017-07-20T21:14:09.000000+00:00 app[api]: Build succeeded
2017-07-20T21:14:23.358721+00:00 app[web.1]:
2017-07-20T21:14:23.358734+00:00 app[web.1]: > icaro@1.0.0 start /app
2017-07-20T21:14:23.358735+00:00 app[web.1]: > node app.js
2017-07-20T21:14:23.358735+00:00 app[web.1]:
2017-07-20T21:14:23.764362+00:00 app[web.1]: consign v0.1.6 Initialized in /appapp
2017-07-20T21:14:23.765553+00:00 app[web.1]: ! Entity not found /appapp/infra
2017-07-20T21:14:23.815182+00:00 app[web.1]: Example app listening at http://:::26579
2017-07-20T21:14:23.933166+00:00 heroku[web.1]: State changed from starting to up
2017-07-20T21:14:46.212070+00:00 heroku[router]: at=info method=GET path="/produtos/form" host=estudo-nodejs-1.herokuapp.com request_id=5c4e567a-966d-44d8-9ac1-ccff8b12aad3 fwd="177.235.93.89" dyno=web.1 connect=0ms service=22ms status=404 bytes=343 protocol=https
2017-07-20T21:14:50.806347+00:00 heroku[router]: at=info method=GET path="/" host=estudo-nodejs-1.herokuapp.com request_id=ccac2e82-9f2b-4a6b-8171-59b356545ee9 fwd="177.235.93.89" dyno=web.1 connect=1ms service=5ms status=404 bytes=343 protocol=https
2017-07-20T21:15:35.000000+00:00 app[api]: Build started by user icaroofigueiredo@gmail.com
2017-07-20T21:15:44.364177+00:00 app[api]: Release v8 created by user icaroofigueiredo@gmail.com
2017-07-20T21:15:44.364177+00:00 app[api]: Deploy ab0dc423 by user icaroofigueiredo@gmail.com
2017-07-20T21:15:35.000000+00:00 app[api]: Build succeeded
2017-07-20T21:15:45.324235+00:00 heroku[web.1]: Restarting
2017-07-20T21:15:45.324816+00:00 heroku[web.1]: State changed from up to starting
2017-07-20T21:15:45.816178+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2017-07-20T21:15:45.877110+00:00 heroku[web.1]: Process exited with status 143
2017-07-20T21:15:50.286449+00:00 heroku[web.1]: Starting process with command `npm start`
2017-07-20T21:15:52.591289+00:00 app[web.1]:
2017-07-20T21:15:52.591304+00:00 app[web.1]: > icaro@1.0.0 start /app
2017-07-20T21:15:52.591306+00:00 app[web.1]:
2017-07-20T21:15:52.591305+00:00 app[web.1]: > node app.js
2017-07-20T21:15:53.191285+00:00 app[web.1]: express-load: Converting extension list to regular expression
2017-07-20T21:15:53.192481+00:00 app[web.1]: express-load: Using regular expression/(.*)(\.js$|\.node$|\.json$|\.coffee$|\.sjs)/for extenstion matching
2017-07-20T21:15:53.195684+00:00 app[web.1]: express-load: Loaded *.routes.home
2017-07-20T21:15:53.196704+00:00 app[web.1]: express-load: Loaded *.routes.produtos
2017-07-20T21:15:53.197702+00:00 app[web.1]: express-load: Loaded *.infra.ProdutosDAO
2017-07-20T21:15:53.198922+00:00 app[web.1]: express-load: Loaded *.infra.connectionFactory
2017-07-20T21:15:53.199005+00:00 app[web.1]: express-load: All things loaded
2017-07-20T21:15:53.197246+00:00 app[web.1]: express-load: Loaded *.routes.promocoes
2017-07-20T21:15:53.248913+00:00 app[web.1]: Example app listening at http://:::53714
2017-07-20T21:15:53.962683+00:00 heroku[web.1]: State changed from starting to up
2017-07-20T21:16:23.089474+00:00 heroku[router]: at=info method=GET path="/" host=estudo-nodejs-1.herokuapp.com request_id=4e4c6b96-229a-410c-a5d5-38f7462f4cfa fwd="177.235.93.89" dyno=web.1 connect=0ms service=1145ms status=500 bytes=355 protocol=https
2017-07-20T21:16:23.079133+00:00 app[web.1]: { [TypeError: /app/app/views/home/index.ejs:93
2017-07-20T21:16:23.079158+00:00 app[web.1]:  >> 93|                 <img width="170" height="240" src="//cdn.shopify.com/s/files/1/0155/7645/products/nodejs-featured_large.png?v=1411486494" alt="<%=livros[i].titulo%>" title="<%=livros[i].titulo%>"/>
2017-07-20T21:16:23.079151+00:00 app[web.1]:     91|         <li class="col-left">
2017-07-20T21:16:23.079152+00:00 app[web.1]:     92|             <a href="linkDetalhe" class="block clearfix">
2017-07-20T21:16:23.079160+00:00 app[web.1]:     95|                 <h2 class="product-title"><%=livros[i].titulo%></h2>
2017-07-20T21:16:23.079160+00:00 app[web.1]:     96|                 <small class="buy-button">Lan&#231;amento!</small>
2017-07-20T21:16:23.079159+00:00 app[web.1]:     94|
2017-07-20T21:16:23.079161+00:00 app[web.1]:
2017-07-20T21:16:23.079162+00:00 app[web.1]: Cannot read property '0' of undefined] path: '/app/app/views/home/index.ejs' }
2017-07-20T21:18:29.202537+00:00 heroku[router]: at=info method=GET path="/" host=estudo-nodejs-1.herokuapp.com request_id=b1598b80-606b-4488-a917-82d7711426e9 fwd="177.235.93.89" dyno=web.1 connect=0ms service=472ms status=500 bytes=355 protocol=https
2017-07-20T21:18:29.198136+00:00 app[web.1]: { [TypeError: /app/app/views/home/index.ejs:93
2017-07-20T21:18:29.198148+00:00 app[web.1]:     91|         <li class="col-left">
2017-07-20T21:18:29.198153+00:00 app[web.1]:     94|
2017-07-20T21:18:29.198153+00:00 app[web.1]:     95|                 <h2 class="product-title"><%=livros[i].titulo%></h2>
2017-07-20T21:18:29.198150+00:00 app[web.1]:     92|             <a href="linkDetalhe" class="block clearfix">
2017-07-20T21:18:29.198152+00:00 app[web.1]:  >> 93|                 <img width="170" height="240" src="//cdn.shopify.com/s/files/1/0155/7645/products/nodejs-featured_large.png?v=1411486494" alt="<%=livros[i].titulo%>" title="<%=livros[i].titulo%>"/>
2017-07-20T21:18:29.198154+00:00 app[web.1]:     96|                 <small class="buy-button">Lan&#231;amento!</small>
2017-07-20T21:18:29.198154+00:00 app[web.1]:
2017-07-20T21:18:29.198155+00:00 app[web.1]: Cannot read property '0' of undefined] path: '/app/app/views/home/index.ejs' }
2017-07-20T21:19:30.921418+00:00 app[web.1]: { [TypeError: /app/app/views/home/index.ejs:93
2017-07-20T21:19:30.921432+00:00 app[web.1]:     91|         <li class="col-left">
2017-07-20T21:19:30.921433+00:00 app[web.1]:     92|             <a href="linkDetalhe" class="block clearfix">
2017-07-20T21:19:30.921434+00:00 app[web.1]:  >> 93|                 <img width="170" height="240" src="//cdn.shopify.com/s/files/1/0155/7645/products/nodejs-featured_large.png?v=1411486494" alt="<%=livros[i].titulo%>" title="<%=livros[i].titulo%>"/>
2017-07-20T21:19:30.921435+00:00 app[web.1]:     94|
2017-07-20T21:19:30.921435+00:00 app[web.1]:     95|                 <h2 class="product-title"><%=livros[i].titulo%></h2>
2017-07-20T21:19:30.921436+00:00 app[web.1]:     96|                 <small class="buy-button">Lan&#231;amento!</small>
2017-07-20T21:19:30.921436+00:00 app[web.1]:
2017-07-20T21:19:30.921437+00:00 app[web.1]: Cannot read property '0' of undefined] path: '/app/app/views/home/index.ejs' }
2017-07-20T21:19:30.923409+00:00 heroku[router]: at=info method=GET path="/" host=estudo-nodejs-1.herokuapp.com request_id=48981efc-87a3-4b7b-98bd-5a9d3860bb85 fwd="177.235.93.89" dyno=web.1 connect=0ms service=457ms status=500 bytes=355 protocol=https