Procházet zdrojové kódy

add env vars to app.json; improve installation instructions

jomo před 10 roky
rodič
revize
feacb19d76
2 změnil soubory, kde provedl 13 přidání a 5 odebrání
  1. 9 5
      README.md
  2. 4 0
      app.json

+ 9 - 5
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)

+ 4 - 0
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"
     ]