Skip to content

Commit

Permalink
Run DB commands after migration
Browse files Browse the repository at this point in the history
  • Loading branch information
gharbat committed Jun 20, 2023
1 parent 52d99f5 commit 08c98e6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ install:
$(DOCKER_COMPOSE) exec backend-server php artisan cache:clear
$(DOCKER_COMPOSE) exec backend-server php artisan config:cache

@echo "$(COLOR_BOLD)=== Running backward compatibility scripts ===$(COLOR_RESET)"
$(DOCKER_COMPOSE) exec backend-server php artisan prompt:fill


@echo "$(COLOR_BOLD)=== Run backend server server migrations ===$(COLOR_RESET)"
$(DOCKER_COMPOSE) exec backend-server php artisan migrate --seed
$(DOCKER_COMPOSE) exec backend-server php artisan storage:link

@echo "$(COLOR_BOLD)=== Running backward compatibility scripts ===$(COLOR_RESET)"
$(DOCKER_COMPOSE) exec backend-server php artisan prompt:fill

$(DOCKER_COMPOSE) run -d backend-server php artisan queue:work --timeout=200

@echo "$(COLOR_BOLD)=== Installation completed ===$(COLOR_RESET)"
Expand Down

0 comments on commit 08c98e6

Please sign in to comment.