Skip to content

Commit

Permalink
fix h5pstorage symlink properly
Browse files Browse the repository at this point in the history
  • Loading branch information
emmachughes committed Jun 10, 2024
1 parent 2c50ac2 commit 440af2b
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ services:
- ./sourcecode/apis/contentauthor/docker/contentAuthor.conf.template:/etc/nginx/templates/contentAuthor.conf.template:ro
- ./sourcecode/apis/contentauthor/docker/no-security-theatre.conf:/etc/nginx/conf.d/no-security-theatre.conf:ro
- ./sourcecode/apis/contentauthor/public:/app/public
- ./sourcecode/apis/contentauthor/storage/app:/app/public/h5pstorage
- ./sourcecode/apis/contentauthor/storage:/app/storage
- ./sourcecode/apis/contentauthor/vendor/h5p/h5p-editor:/app/public/h5p-editor-php-library:ro
- ./sourcecode/apis/contentauthor/vendor/h5p/h5p-core:/app/public/h5p-php-library:ro
environment:
Expand Down
2 changes: 1 addition & 1 deletion sourcecode/apis/contentauthor/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ RUN set -eux; \
storage/framework/sessions \
storage/framework/views \
storage/logs; \
ln -s /app/public/storage/app/public /app/public/storage; \
ln -s ../storage/app public/h5pstorage; \
chmod -R o+w \
bootstrap/cache \
storage; \
Expand Down
16 changes: 16 additions & 0 deletions sourcecode/apis/contentauthor/config/filesystems.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,20 @@
],
],


/*
|--------------------------------------------------------------------------
| Symbolic Links
|--------------------------------------------------------------------------
|
| Here you may configure the symbolic links that will be created when the
| `storage:link` Artisan command is executed. The array keys should be
| the locations of the links and the values should be their targets.
|
*/

'links' => [
public_path('h5pstorage') => '../storage/app',
],

];
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ if [ "$1" = "php-fpm" ]; then
chmod -R o+w bootstrap/cache storage
fi

php artisan storage:link

exec "$@"

0 comments on commit 440af2b

Please sign in to comment.