Added more functions for db
This commit is contained in:
		
							
								
								
									
										26
									
								
								makefile
									
									
									
									
									
								
							
							
						
						
									
										26
									
								
								makefile
									
									
									
									
									
								
							@@ -1,5 +1,17 @@
 | 
			
		||||
# Make all
 | 
			
		||||
all: db api ui
 | 
			
		||||
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
 | 
			
		||||
 | 
			
		||||
# Start everything
 | 
			
		||||
start: db-start api-start ui-start
 | 
			
		||||
@@ -7,14 +19,18 @@ start: db-start api-start ui-start
 | 
			
		||||
# Stop everything
 | 
			
		||||
stop: ui-stop api-stop db-stop
 | 
			
		||||
 | 
			
		||||
# Clean everything
 | 
			
		||||
clean: ui-clean api-clean db-clean
 | 
			
		||||
 | 
			
		||||
# Setup Database
 | 
			
		||||
db: db-init db-start
 | 
			
		||||
 | 
			
		||||
db-init:
 | 
			
		||||
db-init: config
 | 
			
		||||
 | 
			
		||||
db-up:
 | 
			
		||||
	docker-compose -f src/docker-compose.yml up ngx_mgmt_db -d
 | 
			
		||||
db-start:
 | 
			
		||||
 | 
			
		||||
	docker-compose -f src/docker-compose.yml start ngx_mgmt_db
 | 
			
		||||
db-stop:
 | 
			
		||||
	docker-compose -f src/docker-compose.yml stop ngx_mgmt_db
 | 
			
		||||
 | 
			
		||||
# Setup API
 | 
			
		||||
api: api-start
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user