Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ test:
docker compose exec api bash -c 'LOG_CHANNEL=stderr LOG_LEVEL=debug vendor/bin/phpunit ${FILTER}'

init:
docker compose exec api bash -c 'php artisan migrate:fresh && php artisan passport:install --no-interaction && php artisan key:generate'
docker compose exec api bash -c 'php artisan migrate:fresh && su -s /bin/sh www-data -c "php artisan passport:install --no-interaction" && php artisan key:generate'

test-fresh: init test

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ docker compose down --volumes
Run everything in one go:

```sh
docker compose exec api bash -c 'php artisan migrate:fresh && php artisan passport:install --no-interaction && php artisan db:seed && php artisan key:generate && php artisan storage:link'
docker compose exec api bash -c 'php artisan migrate:fresh && su -s /bin/sh www-data -c "php artisan passport:install --no-interaction" && php artisan db:seed && php artisan key:generate && php artisan storage:link'
```

Or each command separately:
Expand All @@ -60,7 +60,7 @@ Or each command separately:
docker compose exec api php artisan migrate:fresh

# Create some certs needed for authentication (passport is a laravel plugin)
docker compose exec api php artisan passport:install --no-interaction
docker compose exec --user www-data api php artisan passport:install --no-interaction

# Seed some useful development data
docker compose exec api php artisan db:seed
Expand Down
Loading