4 Commits

Author SHA1 Message Date
93c3dcbb6d ignore private config 2022-07-28 21:56:51 +02:00
ada5c6b876 empty private config 2022-07-28 21:56:28 +02:00
18222d510a makefile update 2022-07-28 21:55:32 +02:00
a5558aa494 config 2022-07-28 21:49:44 +02:00
4 changed files with 72 additions and 0 deletions

1
.gitignore vendored
View File

@@ -21,3 +21,4 @@
# Go workspace file # Go workspace file
go.work go.work
config/private

0
config/private Normal file
View File

9
config/public Normal file
View File

@@ -0,0 +1,9 @@
# Database Config
## Database Port
DB_PORT="3306"
## Database User
DB_USER="dbuser"
## Database Port
DB_PORT="testdb"
## Database name
DB_NAME="testdb"

62
makefile Normal file
View File

@@ -0,0 +1,62 @@
all: database backend frontend
# Database
database: database-stop database-clean databgase-start database-init
database-stop:
database-start:
database-restart: database-stop database-start
database-clean:
database-init:
# Backend
backend:
backend-restart:
backend-rebuild:
backend-image-push:
# Frontend
frontend:
frontend-stop:
frontend-start:
frontend-restart: frontend-stop frontend-start
frontend-clean:
frontend-rebuild:
frontend-image-push:
# Haproxy - Only used for local
haproxy:
haproxy-stop:
haproxy-start:
haproxy-restart: haproxy-stop haproxy-start
# Config Templating - Only used for local
reconfigure: reconfigure-database reconfigure-backend reconfigure-frontend
reconfigure-database:
reconfigure-backend:
reconfigure-frontend:
reconfigue-haproxy:
./haproxy/reconfigure-haproxy.sh