Peter’s Heroku Commands

login

This is the starter one.

$ heroku login
heroku: Enter your login credentials
Email [[email protected]]:
Password: ****************
Logged in as [email protected]

apps

List the apps under your account.

$ heroku apps
=== [email protected] Apps
peter-bot-test

logs -a

IMPORTANT! This shows you th-I mean the name’s pretty self explanitory.

$ heroku logs -a peter-bot-test
2018-10-11T13:05:55.808817+00:00 heroku[web.1]: Unidling2018-10-11T13:05:55.809108+00:00 heroku[web.1]: State changed from down to starting2018-10-11T13:05:58.086024+00:00 heroku[web.1]: Starting process with command `node app.js`2018-10-11T13:06:00.857929+00:00 app[web.1]: WARNING: NODE_ENV value of 'production' did not match any deployment config file names.2018-10-11T13:06:00.859454+00:00 app[web.1]: WARNING: See <https://github.com/lorenwest/node-config/wiki/Strict-Mode2018-10-11T13:06:01.487750+00:00> app[web.1]: Node app is running on port 337912018-10-11T13:06:02.012268+00:00 heroku[web.1]: State changed from starting to up2018-10-11T13:06:04.008672+00:00 app[web.1]: Received message for user 1487386804658328 and page 201606133579971 at 1539263155001 with message:2018-10-11T13:06:04.008874+00:00 app[web.1]: {"mid":"HXTN9c3bcHGuta7jPYxtQkdXArQda1sfHf6tHL4mFvo2INSQFkln_KbfvquGHRuu4oLiWcn9kFp7h7fskwZZqg","seq":358697,"text":"Bing"}2018-10-11T13:06:04.036381+00:00 heroku[router]: at=info method=POST path="/webhook/" host=peter-bot-test.herokuapp.com request_id=20967e16-7da2-4735-b1cf-94f8c9cc5e90 fwd="66.220.149.5" dyno=web.1 connect=1ms service=164ms status=200 bytes=201 protocol=https2018-10-11T13:06:04.983365+00:00 app[web.1]: Successfully sent message with id whVNt_SqhMVMLR5eW0JrA0dXArQda1sfHf6tHL4mFvqq6HUmecZKp5MMDEvWz03eIePnjtqMqTwzK0BzrmB6nw to recipient 14873868046583282018-10-11T13:42:35.369815+00:00 heroku[web.1]: Idling2018-10-11T13:42:35.370278+00:00 heroku[web.1]: State changed from up to down2018-10-11T13:42:36.713673+00:00 heroku[web.1]: Stopping all processes with SIGTERM2018-10-11T13:42:36.804998+00:00 heroku[web.1]: Process exited with status 143