Skip to content

Commit

Permalink
Фикс инструкции
Browse files Browse the repository at this point in the history
  • Loading branch information
simba77 committed Nov 13, 2024
1 parent 7943218 commit 4924dd8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions documentation/deploy_with_docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ make up
make composer-install
```

Собираем фронтенд админки:
Собираем фронтенд админки (предварительно установить nodejs):

```shell
make build-admin
npm ci && npm run build:admin
```

И если необходимо восстановить базу данных, дамп можно положить в папку с бэкендом с названием **db_name.sql**, где db_name - значение переменной DB_DATABASE в .env файле.
Expand Down
4 changes: 0 additions & 4 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ db-migrate:
@echo "Running database migrations"
@docker exec -it $$(docker ps -q -f name=${COMPOSE_PROJECT_NAME}.php-fpm) php artisan migrate --force

build-admin:
@echo "Building admin frontend"
@docker exec --workdir /backend -it $$(docker ps -q -f name=${COMPOSE_PROJECT_NAME}.nodejs) npm i -g vite && npm i && npm run build:admin

restore-db:
@echo "Restore database dump from file ${DB_DATABASE}.sql"
@docker exec -i $$(docker ps -q -f name=${COMPOSE_PROJECT_NAME}.mariadb) mariadb -u${DB_USERNAME} -p"${DB_PASSWORD}" ${DB_DATABASE} < ${DB_DATABASE}.sql
Expand Down

0 comments on commit 4924dd8

Please sign in to comment.