From 3bc2d678d2f72efac6d38b7f7f7fce9d7ea5dcce Mon Sep 17 00:00:00 2001 From: Cameron Rodriguez <rod.cam2014+dev@gmail.com> Date: Sat, 22 Dec 2018 18:31:20 -0500 Subject: [PATCH] added Procfile and Heroku instructions --- Procfile | 1 + README.md | 11 ++++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 Procfile diff --git a/Procfile b/Procfile new file mode 100644 index 0000000..e82f14b --- /dev/null +++ b/Procfile @@ -0,0 +1 @@ +worker: python xkcd_alt.py \ No newline at end of file diff --git a/README.md b/README.md index dbbe1ab..7024425 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,16 @@ Add your API keys and access tokens to your environmental variables by following ### --> Running on Heroku -Details are coming soon! +Sign into Heroku and ensure the [Heroku CLI](https://devcenter.heroku.com/articles/heroku-cli) is installed and logged in. [Create a new app](https://dashboard.heroku.com/new-app) with your choice of name. Then, add your environmental/config variables by clicking *Reveal config vars* inside the settings tab of your new dashboard. Add them in this format: ```YOUR_API_KEY_HERE_ALL_CAPS``` ```apikey``` + +Open the command line inside the folder with your program and run the following commands: + +```console +$ heroku git:remote -a yourappname +$ git push heroku master +``` + +You should also install the [Logentries addon](https://elements.heroku.com/addons/logentries) to notify yourself of errors or crashes. ## Forks and Contributing -- GitLab