mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-17 16:50:22 +00:00
Fix Companion deploys (#3388)
* Change compilation to postinstall * Deploy * Restore shape * Reduce builds * Use docker instead * Use port as second variable * Change * Minor fixes * Update .github/workflows/companion-deploy.yml Co-authored-by: Mikael Finstad <finstaden@gmail.com> Co-authored-by: Mikael Finstad <finstaden@gmail.com>
This commit is contained in:
parent
683c03c340
commit
fee5ad917f
4 changed files with 9 additions and 3 deletions
6
.github/workflows/companion-deploy.yml
vendored
6
.github/workflows/companion-deploy.yml
vendored
|
|
@ -1,5 +1,6 @@
|
|||
name: Companion Deploy
|
||||
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
|
|
@ -43,10 +44,13 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout sources
|
||||
uses: actions/checkout@v2
|
||||
- name: Alter dockerfile
|
||||
run: |
|
||||
sed -i 's/^EXPOSE 3020$/EXPOSE $PORT/g' Dockerfile
|
||||
- name: Deploy to heroku
|
||||
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}}
|
||||
usedocker: true
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
web: COMPANION_PORT=$PORT node ./src/standalone/start-server
|
||||
3
packages/@uppy/companion/heroku.yml
Normal file
3
packages/@uppy/companion/heroku.yml
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
build:
|
||||
docker:
|
||||
web: Dockerfile
|
||||
|
|
@ -4,7 +4,7 @@ const companion = require('../companion')
|
|||
const { version } = require('../../package.json')
|
||||
const standalone = require('.')
|
||||
|
||||
const port = process.env.COMPANION_PORT || 3020
|
||||
const port = process.env.COMPANION_PORT || process.env.PORT || 3020
|
||||
|
||||
const { app } = standalone()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue