Refactor postgres db folder creation (#190)

This commit is contained in:
Leendert de Borst
2024-12-25 22:26:58 +01:00
parent 4f5e822722
commit cb330219ab
3 changed files with 4 additions and 1 deletions

1
.gitignore vendored
View File

@@ -413,4 +413,5 @@ docs/vendor
docs/.bundle
# Database files
database/postgres
database/postgres-dev

View File

@@ -1 +0,0 @@
This is the default location where the postgres database files are stored.

View File

@@ -733,6 +733,9 @@ handle_build() {
set_deployment_mode "build"
printf "\n"
# Initialize workspace which makes sure all required directories and files exist
initialize_workspace
# Check for required build files
if [ ! -f "docker-compose.build.yml" ] || [ ! -d "src" ]; then
printf "${RED}Error: Required files for building from source are missing.${NC}\n"