Skip to content

Commit 22f26b7

Browse files
committed
UPDATE: Makefile(scripts commands)
1 parent 84337c0 commit 22f26b7

1 file changed

Lines changed: 28 additions & 1 deletion

File tree

Makefile

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,4 +263,31 @@ nginx_docker_restart:
263263

264264
# Connect to the Nginx container
265265
nginx_shell:
266-
docker-compose exec nginx sh
266+
docker-compose exec nginx sh
267+
268+
# Scripts Commands
269+
#-------------------------------------------------
270+
271+
# Start the project with optional environment argument (e.g., make start_project ENV=production)
272+
start_project:
273+
./scripts/start_project.sh $(ENV)
274+
275+
# Stop the project
276+
stop_project:
277+
./scripts/stop_project.sh
278+
279+
# Restart the project
280+
restart_project:
281+
./scripts/restart_project.sh
282+
283+
# Run migrations
284+
migrate:
285+
./scripts/run_migrations.sh
286+
287+
# Run seeders (use SEEDER=seeder_name to specify a seeder)
288+
seed:
289+
./scripts/run_seed.sh $(SEEDER)
290+
291+
# Clear Redis cache with confirmation
292+
clear_cache:
293+
./scripts/clear_cache.sh

0 commit comments

Comments
 (0)