Skip to content

Commit

Permalink
UPDATE: Makefile(scripts commands)
Browse files Browse the repository at this point in the history
  • Loading branch information
YuriiDorosh committed Mar 9, 2024
1 parent 84337c0 commit 22f26b7
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -263,4 +263,31 @@ nginx_docker_restart:

# Connect to the Nginx container
nginx_shell:
docker-compose exec nginx sh
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

0 comments on commit 22f26b7

Please sign in to comment.