collect django static on startup
This commit is contained in:
		
							parent
							
								
									5d51bc6637
								
							
						
					
					
						commit
						ebe4483e0b
					
				
							
								
								
									
										9
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										9
									
								
								Makefile
									
									
									
									
									
								
							| @ -8,10 +8,6 @@ lint: | ||||
| 	ruff deployment/*.py | ||||
| 	ruff mumui/*.py | ||||
| 
 | ||||
| migrations: | ||||
| 	python manage.py makemigrations | ||||
| 	python manage.py migrate | ||||
| 
 | ||||
| django: | ||||
| 	docker build . -t mumui:local | ||||
| 
 | ||||
| @ -21,6 +17,11 @@ pushpin-local: | ||||
| nginx-local: | ||||
| 	cd nginx && docker build . -t nginx:local | ||||
| 
 | ||||
| build: | ||||
| 	$(MAKE) pushpin-local | ||||
| 	$(MAKE) nginx-local | ||||
| 	$(MAKE) django | ||||
| 
 | ||||
| run: | ||||
| 	docker compose up | ||||
| 
 | ||||
|  | ||||
| @ -3,6 +3,7 @@ pip install -r requirements.txt | ||||
| 
 | ||||
| python manage.py makemigrations | ||||
| python manage.py migrate | ||||
| python manage.py collectstatic --no-input | ||||
| 
 | ||||
| DJANGO_SUPERUSER_PASSWORD=admin python manage.py createsuperuser --noinput --username admin --email admin@admin.fr | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user