File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,6 +23,46 @@ docker_run_win:
2323docker_stop_win :
2424 docker-compose down
2525
26+ # Production Docker Management Commands
27+ # -------------------------------------------------
28+
29+ # Start the production Docker environment
30+ prod_up :
31+ docker-compose -f docker-compose.prod.yml up -d
32+
33+ # Stop the production Docker environment
34+ prod_down :
35+ docker-compose -f docker-compose.prod.yml down
36+
37+ # Restart the production Docker environment
38+ prod_restart :
39+ make prod_down
40+ make prod_up
41+
42+ # View logs for the production Docker environment
43+ prod_logs :
44+ docker-compose -f docker-compose.prod.yml logs
45+
46+ # Rebuild and start the production Docker environment
47+ prod_rebuild :
48+ docker-compose -f docker-compose.prod.yml up -d --build
49+
50+ # Stop and remove all containers, networks, and volumes
51+ prod_clean :
52+ docker-compose -f docker-compose.prod.yml down -v
53+
54+ # Execute production migrations (adjust command as necessary for your project setup)
55+ prod_migrate :
56+ docker-compose -f docker-compose.prod.yml exec app php spark migrate
57+
58+ # Execute production seeders (adjust command as necessary for your project setup)
59+ prod_seed :
60+ docker-compose -f docker-compose.prod.yml exec app php spark db:seed
61+
62+ # Clear the Redis cache in the production environment
63+ prod_clear_cache :
64+ docker-compose -f docker-compose.prod.yml exec redis redis-cli FLUSHALL
65+
2666# Database migrations
2767# -------------------------------------------------
2868
You can’t perform that action at this time.
0 commit comments