engine_x_mgmt/makefile

53 lines
1.1 KiB
Makefile
Raw Normal View History

2022-10-18 00:19:46 +02:00
# Make all
2022-10-18 22:33:37 +02:00
all:
$(info Use make with the following arguments to controll this Project)
$(info - init => Initializes the whole Project => Attention can overwrite data)
$(info - up => Spinns the Project up)
$(info - start => Starts this Project "Only works if data already existed")
$(info - stop => Stops this Project "Only works if started or spun up")
$(info - clean => Clean this Project => Attention this deletes data)
# Start everything
init: db-init api-init ui-init
# Up everything
up: db-up api-up ui-up
2022-10-18 00:19:46 +02:00
# Start everything
start: db-start api-start ui-start
# Stop everything
stop: ui-stop api-stop db-stop
2022-10-18 22:33:37 +02:00
# Clean everything
clean: ui-clean api-clean db-clean
2022-10-18 00:19:46 +02:00
2022-10-18 22:33:37 +02:00
# Setup Database
db-init: config
2022-10-18 00:19:46 +02:00
2022-10-18 22:33:37 +02:00
db-up:
docker-compose -f src/docker-compose.yml up ngx_mgmt_db -d
2022-10-18 00:19:46 +02:00
db-start:
2022-10-18 22:33:37 +02:00
docker-compose -f src/docker-compose.yml start ngx_mgmt_db
2022-10-18 00:19:46 +02:00
db-stop:
2022-10-18 22:33:37 +02:00
docker-compose -f src/docker-compose.yml stop ngx_mgmt_db
2022-10-18 00:19:46 +02:00
# Setup API
api: api-start
api-start:
api-stop:
# Setup UI
ui: ui-start
ui-start:
ui-stop:
# Regenerate configs
config: config-regenerate
config-regenerate:
python config/template.py