Переглянути джерело

companion: smaller heroku deployment (#2845)

Renée Kooi 4 роки тому
батько
коміт
e82f828d19

+ 2 - 1
.github/workflows/companion-deploy.yml

@@ -44,8 +44,9 @@ jobs:
       - name: Checkout sources
         uses: actions/checkout@v2
       - name: Deploy to heroku
-        uses: akhileshns/heroku-deploy@v3.5.6
+        uses: akhileshns/heroku-deploy@v3.12.12
         with:
+          appdir: packages/@uppy/companion
           heroku_api_key: ${{secrets.HEROKU_API_KEY}}
           heroku_app_name: companion-demo
           heroku_email: ${{secrets.HEROKU_EMAIL}}

+ 0 - 1
Procfile

@@ -1 +0,0 @@
-web: ./bin/companion-heroku

+ 0 - 5
bin/companion-heroku

@@ -1,5 +0,0 @@
-#!/usr/bin/env bash
-
-env \
-  COMPANION_PORT=$PORT \
-node ./packages/@uppy/companion/src/standalone/start-server.js

+ 2 - 1
package-lock.json

@@ -56938,7 +56938,8 @@
         "typescript": "3.7.5"
       },
       "engines": {
-        "node": ">=10.20.1"
+        "node": ">=10.20.1",
+        "npm": "7.x"
       }
     },
     "packages/@uppy/companion-client": {

+ 1 - 0
packages/@uppy/companion/Procfile

@@ -0,0 +1 @@
+web: COMPANION_PORT=$PORT node ./src/standalone/start-server

+ 0 - 0
packages/@uppy/companion/output/.keep


+ 2 - 1
packages/@uppy/companion/package.json

@@ -109,6 +109,7 @@
     "test:watch": "npm test -- --watch"
   },
   "engines": {
-    "node": ">=10.20.1"
+    "node": ">=10.20.1",
+    "npm": "7.x"
   }
 }