linuxserver / docker-bookstack

A Docker container for the BookStack documentation wiki
GNU General Public License v3.0
747 stars 108 forks source link

missing: php artisan #128

Closed hctrr closed 2 years ago

hctrr commented 2 years ago

linuxserver.io


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 run php 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 folder

Environment

OS: Ubuntu 20.04.4 CPU architecture: x86_64

How docker service was installed: Installed via Docker Compose template provided.

github-actions[bot] commented 2 years ago

Thanks for opening your first issue here! Be sure to follow the bug or feature issue templates!

ssddanbrown commented 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
hctrr commented 2 years ago

@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: image

aptalca commented 2 years ago

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

hctrr commented 2 years ago

@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.