better wording and tidy up of init script

This commit is contained in:
Martin McKeaveney 2021-03-22 19:35:29 +00:00
parent 71103bd601
commit 555e6386a7
2 changed files with 11 additions and 14 deletions

View File

@ -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:

View File

@ -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: