DEVELOPMENT ENVIRONMENT

~liljamo/deck-builder

ref: 78b9e55d382134e604eca1a5940f9fc11fd9c109 deck-builder/api/scripts/dev-start-db.sh -rwxr-xr-x 495 bytes
78b9e55dJonni Liljamo fix(server): remove aa_details for user from temp after sending 1 year, 9 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash

export COMPOSE_PROJECT_NAME=laurelin

function confirm() {
  echo -n "$@ [y/N]: "
    read -e answer
    for response in y Y
    do
        if [ "_$answer" == "_$response" ]
        then
            return 0
        fi
    done

    # default to no
    return 1
}

confirm reset containers? && docker compose --file docker-compose.dev.yaml down
confirm reset database? && docker volume rm laurelin_laurelindb_data
confirm launch? && docker compose --file docker-compose.dev.yaml up