Can build central in production mode
This commit is contained in:
		
							
								
								
									
										11
									
								
								Makefile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								Makefile
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,11 @@
 | 
			
		||||
DOCKER_TEMP_DIR=temp
 | 
			
		||||
 | 
			
		||||
all: frontend backend
 | 
			
		||||
 | 
			
		||||
frontend:
 | 
			
		||||
	cd central_frontend && npm run build && cd ..
 | 
			
		||||
	rm -rf central_backend/static
 | 
			
		||||
	mv central_frontend/dist central_backend/static
 | 
			
		||||
 | 
			
		||||
backend: frontend
 | 
			
		||||
	cd central_backend && cargo clippy -- -D warnings && cargo build --release
 | 
			
		||||
		Reference in New Issue
	
	Block a user