From 22f26b75833621a06c1abc8a5b1b663b5af118a9 Mon Sep 17 00:00:00 2001 From: Yurii Date: Sun, 10 Mar 2024 01:53:23 +0200 Subject: [PATCH] UPDATE: Makefile(scripts commands) --- Makefile | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8ec0228..a9b8ce0 100644 --- a/Makefile +++ b/Makefile @@ -263,4 +263,31 @@ nginx_docker_restart: # Connect to the Nginx container nginx_shell: - docker-compose exec nginx sh \ No newline at end of file + docker-compose exec nginx sh + +# Scripts Commands +#------------------------------------------------- + +# Start the project with optional environment argument (e.g., make start_project ENV=production) +start_project: + ./scripts/start_project.sh $(ENV) + +# Stop the project +stop_project: + ./scripts/stop_project.sh + +# Restart the project +restart_project: + ./scripts/restart_project.sh + +# Run migrations +migrate: + ./scripts/run_migrations.sh + +# Run seeders (use SEEDER=seeder_name to specify a seeder) +seed: + ./scripts/run_seed.sh $(SEEDER) + +# Clear Redis cache with confirmation +clear_cache: + ./scripts/clear_cache.sh \ No newline at end of file