Преглед изворни кода

Add heroku example to readme

Yonah Forst пре 6 година
родитељ
комит
9556a47683
1 измењених фајлова са 31 додато и 0 уклоњено
  1. 31 0
      packages/@uppy/companion/README.md

+ 31 - 0
packages/@uppy/companion/README.md

@@ -95,5 +95,36 @@ When you are all set install the dependencies and deploy your function:
 npm install && sls deploy
 ```
 
+### Deploy to heroku
+
+Companion can also be deployed to [Heroku](https://www.heroku.com)
+```
+mkdir uppy-companion && cd uppy-companion
+
+git init
+
+echo 'export COMPANION_PORT=$PORT' > .profile
+echo 'node_modules' > .gitignore
+echo '{
+  "name": "uppy-companion",
+  "version": "1.0.0",
+  "scripts": {
+    "start": "companion"
+  },
+  "dependencies": {
+    "@uppy/companion": "^0.17.0"
+  }
+}' > package.json
+
+npm i
+
+git add . && git commit -am 'first commit'
+
+heroku create
+
+git push heroku master
+```
+Make sure you set the required [environment variables](https://uppy.io/docs/companion/#Configure-Standalone).
+
 
 See [full documentation](https://uppy.io/docs/companion/)