From 81452c3a7faf7349fcbb214f576ba4dd720cbee4 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Mon, 22 Mar 2021 19:35:29 +0000 Subject: [PATCH] better wording and tidy up of init script --- hosting/docker-compose.dev.yaml | 3 --- packages/server/scripts/dev/manage.js | 22 +++++++++++----------- 2 files changed, 11 insertions(+), 14 deletions(-) diff --git a/hosting/docker-compose.dev.yaml b/hosting/docker-compose.dev.yaml index 8f6c5b504d..39fcb7ec83 100644 --- a/hosting/docker-compose.dev.yaml +++ b/hosting/docker-compose.dev.yaml @@ -61,9 +61,6 @@ services: container_name: budi-redis-dev restart: always image: redis - environment: - - COUCHDB_PASSWORD=${COUCH_DB_PASSWORD} - - COUCHDB_USER=${COUCH_DB_USER} ports: - "${REDIS_PORT}:6379" volumes: diff --git a/packages/server/scripts/dev/manage.js b/packages/server/scripts/dev/manage.js index f76b5ebd3d..88da3e5a0e 100644 --- a/packages/server/scripts/dev/manage.js +++ b/packages/server/scripts/dev/manage.js @@ -15,17 +15,6 @@ const Commands = { Nuke: "nuke", } -const managementCommand = process.argv.slice(2)[0] - -if ( - !managementCommand || - !Object.values(Commands).some(command => managementCommand === command) -) { - throw new Error( - "You must supply either an 'up' or 'down' commmand to manage the budibase dev env." - ) -} - async function up() { console.log("Spinning up your budibase dev environment... 🔧✨") try { @@ -55,6 +44,17 @@ async function nuke() { } } +const managementCommand = process.argv.slice(2)[0] + +if ( + !managementCommand || + !Object.values(Commands).some(command => managementCommand === command) +) { + throw new Error( + "You must supply either an 'up', 'down' or 'nuke' commmand to manage the budibase development environment." + ) +} + let command switch (managementCommand) { case Commands.Up: