1
0
Fork 0
mirror of synced 2024-06-14 16:35:02 +12:00

Renaming deployment service to worker service for its expansion plans.

This commit is contained in:
Michael Drury 2020-12-17 12:39:55 +00:00
parent 15f8328770
commit 7845118fb3
15 changed files with 11 additions and 11 deletions

View file

@ -1 +0,0 @@
../packages/deployment/

View file

@ -17,16 +17,16 @@ services:
LOGO_URL: ${LOGO_URL}
PORT: ${APP_PORT}
depends_on:
- deployment-service
- worker-service
deployment-service:
build: ./deployment
worker-service:
build: ./worker
ports:
- "${DEPLOYMENT_PORT}:${DEPLOYMENT_PORT}"
- "${WORKER_PORT}:${WORKER_PORT}"
environment:
SELF_HOSTED: 1,
DEPLOYMENT_API_KEY: ${DEPLOYMENT_API_KEY}
PORT: ${DEPLOYMENT_PORT}
DEPLOYMENT_API_KEY: ${WORKER_API_KEY}
PORT: ${WORKER_PORT}
MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY}
MINIO_SECRET_KEY: ${MINIO_SECRET_KEY}
RAW_MINIO_URL: http://nginx-service:${MINIO_PORT}

View file

@ -2,11 +2,11 @@ MINIO_ACCESS_KEY=budibase
MINIO_SECRET_KEY=budibase
COUCH_DB_PASSWORD=budibase
COUCH_DB_USER=budibase
DEPLOYMENT_API_KEY=budibase
WORKER_API_KEY=budibase
BUDIBASE_ENVIRONMENT=PRODUCTION
HOSTING_URL="http://localhost:4001"
LOGO_URL=https://logoipsum.com/logo/logo-15.svg
APP_PORT=4002
MINIO_PORT=4003
COUCH_DB_PORT=4004
DEPLOYMENT_PORT=4006
WORKER_PORT=4006

1
hosting/worker Symbolic link
View file

@ -0,0 +1 @@
../packages/worker/

View file

@ -1,6 +1,6 @@
module.exports = {
SELF_HOSTED: process.env.SELF_HOSTED,
DEPLOYMENT_API_KEY: process.env.DEPLOYMENT_API_KEY,
WORKER_API_KEY: process.env.WORKER_API_KEY,
PORT: process.env.PORT,
MINIO_ACCESS_KEY: process.env.MINIO_ACCESS_KEY,
MINIO_SECRET_KEY: process.env.MINIO_SECRET_KEY,

View file

@ -33,7 +33,7 @@ destroyable(server)
server.on("close", () => console.log("Server Closed"))
module.exports = server.listen(env.PORT || 4002, async () => {
console.log(`Deployment running on ${JSON.stringify(server.address())}`)
console.log(`Worker running on ${JSON.stringify(server.address())}`)
})
process.on("uncaughtException", err => {