Closed hctrr closed 2 years ago
@hctrr From within the same folder as your docker-compose.yml
setup, you could use the following to access the artisan command line:
docker-compose exec bookstack php /var/www/html/artisan
# (Usage Example):
docker-compose exec bookstack php /var/www/html/artisan bookstack:clear-views
@ssddanbrown - thank you for the path.
I kept looking within /config/www/
which kept reporting missing file. I also tried to "find" artisan by installing apk add --update whereis
within the container, however it was never able to locate "artisan".
thank you very much once again for the path:
Just fyi, when you update the url in env vars, the container prints the command you need to use in the logs: https://github.com/linuxserver/docker-bookstack/blob/master/root/etc/cont-init.d/50-config#L85
@aptalca - wow! this is great info! From my side - I replaced the URL a couple of months ago and just noticed during a testing (backup/restore & other work) that on some pages i was missing the image. Since i was editing the page via the markdown editor - i noticed the reference to the old app URL.
Expected Behavior
As outlined in the official BookStack docs Commands we should be able to run
php artisan
from the BookStack install folder, however after poking throughout the current docker image (22.06.2) I've been unable to runphp artisan
successfully.Current Behavior
Constantly reports back that the artisan file can not be found.
Steps to Reproduce
Attempting to update my URLs from old to new: php artisan bookstack:update-url
to reproduce - simply execute
php artisan
from the BookStack install folderEnvironment
OS: Ubuntu 20.04.4 CPU architecture: x86_64
How docker service was installed: Installed via Docker Compose template provided.