add env vars to app.json; improve installation instructions

This commit is contained in:
jomo 2015-01-11 02:46:38 +01:00
parent e437b90b51
commit feacb19d76
2 changed files with 13 additions and 5 deletions

View File

@ -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 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. * 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) [![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` * `npm install`
* `cp "modules/config.example.js" "modules/config.js"` * Start `redis-server`
* Ensure a `redis-server` is running
* `npm start` * `npm start`
* Access [http://localhost:3000](http://localhost:3000) * Access [http://localhost:3000](http://localhost:3000)

View File

@ -9,6 +9,10 @@
"redis" "redis"
], ],
"website": "https://crafatar.com/", "website": "https://crafatar.com/",
"env": {
"HEROKU": "true",
"BUILDPACK_URL": "https://github.com/mojodna/heroku-buildpack-multi.git#build-env"
},
"addons": [ "addons": [
"rediscloud" "rediscloud"
] ]