-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Akolosova/hw6 #1191
base: main
Are you sure you want to change the base?
Akolosova/hw6 #1191
Conversation
app/fpm/Dockerfile
Outdated
@@ -0,0 +1,10 @@ | |||
FROM php:8.2-fpm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
У Вас консольное приложение. Ему FPM не нужен.
app/fpm/Dockerfile
Outdated
|
||
WORKDIR /var/www/application.local | ||
|
||
CMD ["php-fpm"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Вместо запуска FPM нужно сделать контейнер с сервером, который при старте сразу запустится.
app/www/.gitignore
Outdated
@@ -0,0 +1,2 @@ | |||
.idea/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Если Вы в корневом .gitignore указали папку без '/' перед ней, то она будет игнорироваться во всех подпапках. Можно не повторять.
…"php", "-S", "0.0.0.0:8000", "-t", "/var/www/application.local"] в Dockerfile, также вместо него добавляла command: php /var/www/application.local/app.php server в docker-compose.yaml , в обоих случаях одинаковая ошибка.
No description provided.