invoiceninja / dockerfiles

Docker files for Invoice Ninja
https://hub.docker.com/r/invoiceninja/invoiceninja
GNU General Public License v2.0
398 stars 264 forks source link

Question: How to run PHP commands? #508

Closed LeehamElectronics closed 1 year ago

LeehamElectronics commented 1 year ago

I am following this guide where I am told to run the following commands:

php artisan config:cache
php artisan config:clear

Where exactly and how am I supposed to run these commands? I have tried to use the docker console for the container but I get the following error: OCI runtime exec failed: exec failed: unable to start container process: exec: "bash": executable file not found in $PATH: unknown

I am using Docker Compose on Ubuntu Server.

Thanks for your help.

turbo124 commented 1 year ago

@LeehamElectronics

For docker you only need to reboot the container ie

docker-compose down
docker-compose up

no need to run any commands (i'll update the docs)