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 => {