【State】 Laravel is built with docker and the container is started with the following command
docker-compose up -d --build
~ Supplementary explanation ~
-d
→ Detached mode: Running the container in the background.
--build
→ It reloads the Dockerfile and reflects the updated information.
【problem】 Since the container has started up, when I access [http: // localhost /](http: // localhost /), the following error message is displayed!
[Cause] composer couldn't be installed ...
【solution】
(Change the directory with cd
and move to the folder containing app
and bootstrap
)
composer install
or
composer update
You can do it with.
command not found: composer
will be displayed unless the directory is specified above! !![Impression] Recently, I feel that my ability to investigate is growing ...
There is no shame in not knowing; the shame lies in not finding out
It's not a shame not to know. It's a shame not to know
Tell me,
Recommended Posts