Skip to content

Commit

Permalink
Add bin/fixtures script for loading fixtures in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
senghe committed Oct 8, 2024
1 parent 3cbee51 commit a52dce0
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions bin/fixtures
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

mkdir -p tests/Application/var/log
mkdir -p tests/Application/var/cache
chown www-data:www-data tests/Application/var/log
chown www-data:www-data tests/Application/var/cache

chown -Rf www-data:www-data tests/Application/public/media
chown -Rf www-data:www-data tests/Application/public/media/*

tests/Application/bin/console cache:clear
tests/Application/bin/console doctrine:database:create --if-not-exists
tests/Application/bin/console doctrine:schema:update --force
tests/Application/bin/console sylius:fixtures:load -n

0 comments on commit a52dce0

Please sign in to comment.