From feacb19d76fcb15c95da69942c23dd5c72dd78b3 Mon Sep 17 00:00:00 2001 From: jomo Date: Sun, 11 Jan 2015 02:46:38 +0100 Subject: [PATCH] add env vars to app.json; improve installation instructions --- README.md | 14 +++++++++----- app.json | 4 ++++ 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 80697c7..34a950f 100644 --- a/README.md +++ b/README.md @@ -17,13 +17,17 @@ Please [visit the website](https://crafatar.com) for details. * You can follow us on [![t](https://favicons.githubusercontent.com/twitter.com)@crafatar](https://twitter.com/crafatar) * You can [join us](https://webchat.esper.net/?channels=crafatar) in #crafatar on irc.esper.net. -## Install +## Installation +#### Heroku [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy) -* Ensure Cairo is [installed](https://github.com/Automattic/node-canvas/wiki). -* Clone the repository. + +#### Dokku +Deploy with [dokku-redis](https://github.com/ohardy/dokku-redis#redis-plugin-for-dokku) installed. + +#### Local +* [Install](https://github.com/Automattic/node-canvas/wiki) Cairo. * `npm install` -* `cp "modules/config.example.js" "modules/config.js"` -* Ensure a `redis-server` is running +* Start `redis-server` * `npm start` * Access [http://localhost:3000](http://localhost:3000) diff --git a/app.json b/app.json index 531cf0b..c359568 100644 --- a/app.json +++ b/app.json @@ -9,6 +9,10 @@ "redis" ], "website": "https://crafatar.com/", + "env": { + "HEROKU": "true", + "BUILDPACK_URL": "https://github.com/mojodna/heroku-buildpack-multi.git#build-env" + }, "addons": [ "rediscloud" ]