I use it inside the php container as not always the PHP version is the same in the host machine and in the container. Also your app might require PHP-extensions that are not installed in host
Honestly the video is not bad because its the only one available so far but you still miss many details and often times its just "Copy config here". For example you dont say a single word to the PHP environment variables your are using. You just copy serverName=docker.for.mac.localhost into there and people cant follow this. This video helped me but im still struggling to setup phpunit and xdebug.
Yeah so far its working. The biggest problem I have is permissions, because im on Windows I get permissions error for cache and var all the time. Also I have now enabled PHPUnit for testing on docker container but I have the problem that I get warning: "Multiple definitions exist for class 'TestCase' for PHPUnit because of the symlink in vendor/bin/.phpunit. Do you have a solution for this?
Add "--if-exists" at the end of the drop database line, you might get errors when you don't have the database, like this: symfony console doctrine:database:drop --if-exists --force
This is an amazing explanation, IM trying to get the welcome page of symphony on the localhost:80 but it's just not working, I'm using your tutorial any help?
Hi Diego! Thank you for good feedback, I'm glad that you found this tutorial useful. I need more information about your problem. If you want you can reach me in facebook, write email or post in telegram chat.
Did you do something special for permissions ? composer create-project generated files are owned by root of the container so I can't edit them on my machine.
I didn't do anything extra. Only for "prod" I grant access to files for www-data user: github.com/Cap-Coding/symfony_docker/blob/master/Dockerfile_prod#L68
Hi Michael! I still do videos but unfortunately I had a very long pause due to different reasons (health issues and war in Ukraine). Definitely I should communicate this better to my audience... But now I'm back on track and I work on Symfony course which I have started in September. I plan to release it very soon (hopefully before the mid of May) Thank you for your interest and be tuned!
@@CapCoding Oh, cool. Glad to hear that. I like your calmness and your level - it's not beginner. And you explain it very thoroughly. I stay tuned ;) .
@@CapCoding Especially I would be interested in a complete docker workflow (local - github - server provider like hetzner cloud). That would be great. Maybe also with a working CI including running tests and github hooks to automaticly trigger a deployment. For me that is an area of mystery yet.
Hi! There is an open issue on GitHub github.com/Cap-Coding/symfony_docker/issues/1 Looks like the same issue. Unfortunately I don't have a Windows machine to reproduce this problem
Привет, @Vimble! Так сходу похоже, что пароль не правильный, но подозреваю, что ты все сделал по уроку и это то, что ты проверил в первую очередь. Чтобы много не писать тут, можешь добавиться в мой телеграмм-канал и мы обсудим эту проблему подробно там: t.me/capcodingchat
What do you do to speed-up docker on OSX? Especially when xdebug is enabled.
nfs or mutagen
@@vladislavkarpenko6064 Thanks! I didn't hear about mutagen before. It will be interesting to read about it.
Thank you for the video. How do you use Symfony console CLI? From inside the php container or from local?
I use it inside the php container as not always the PHP version is the same in the host machine and in the container. Also your app might require PHP-extensions that are not installed in host
Thank you very much for this excellent video!
You welcome! I’m glad that you liked it :)
This is amazing and detailed explanation. Great work done. Thank you for crating and sharing this value informations.
Glad you enjoyed it, Josip!
Thanks so much 👍. Great video
You’re welcome 🙂 I’m glad you like it
Honestly the video is not bad because its the only one available so far but you still miss many details and often times its just "Copy config here".
For example you dont say a single word to the PHP environment variables your are using. You just copy serverName=docker.for.mac.localhost into there and people cant follow this.
This video helped me but im still struggling to setup phpunit and xdebug.
Thank you for your feedback. I'll try to consider it in my future videos.
Have you managed to setup xdebug?
Yeah so far its working. The biggest problem I have is permissions, because im on Windows I get permissions error for cache and var all the time.
Also I have now enabled PHPUnit for testing on docker container but I have the problem that I get warning: "Multiple definitions exist for class 'TestCase' for PHPUnit because of the symlink in vendor/bin/.phpunit.
Do you have a solution for this?
As far as I know, text "Multiple definitions exist for class 'TestCase'" is shown only in IDE. It's not really an error and you can ignore it
G
Needed
What do you mean?
Add "--if-exists" at the end of the drop database line, you might get errors when you don't have the database, like this:
symfony console doctrine:database:drop --if-exists --force
Yes, make sense
Sir why u use Php storm and not vscode? Any advantages sir?
This is an amazing explanation, IM trying to get the welcome page of symphony on the localhost:80 but it's just not working, I'm using your tutorial any help?
Hi Diego! Thank you for good feedback, I'm glad that you found this tutorial useful.
I need more information about your problem. If you want you can reach me in facebook, write email or post in telegram chat.
@@CapCoding Thanks man !! I join telegram but can post anything :/
@@diegoquiroga4895 I see you managed to do it 🙂
Did you do something special for permissions ? composer create-project generated files are owned by root of the container so I can't edit them on my machine.
I didn't do anything extra. Only for "prod" I grant access to files for www-data user:
github.com/Cap-Coding/symfony_docker/blob/master/Dockerfile_prod#L68
please consider adding a hotkey overlay to your videos
Very valuable feedback, thank you. I'll definitely do this
Hey! I really would love to see more videos from you. But it seems you don't do videos anymore. Is that right?
Hi Michael!
I still do videos but unfortunately I had a very long pause due to different reasons (health issues and war in Ukraine). Definitely I should communicate this better to my audience...
But now I'm back on track and I work on Symfony course which I have started in September. I plan to release it very soon (hopefully before the mid of May)
Thank you for your interest and be tuned!
@@CapCoding Oh, cool. Glad to hear that. I like your calmness and your level - it's not beginner. And you explain it very thoroughly. I stay tuned ;) .
@@CapCoding Especially I would be interested in a complete docker workflow (local - github - server provider like hetzner cloud). That would be great. Maybe also with a working CI including running tests and github hooks to automaticly trigger a deployment. For me that is an area of mystery yet.
Thanks for your input. I’ve added this topic to my list 🙂
7:15 И рисуем остальную сову)
😁
Англ-чангл)
😁
Здравствуй, друг)
Hello. Is there any reason for you not to use unix port to connect php-fpm and nginx?
Hi! No reasons. You can use one way or another one. Up to you
@@CapCoding Is a unix port not much faster?
Uncaught Exception: Unable to write in the "logs" directory (/app/var/log).
I get error, while run php container
standard_init_linux.go:219: exec user process caused: no such file or directory
Host Machine windows 10
Hi! There is an open issue on GitHub github.com/Cap-Coding/symfony_docker/issues/1
Looks like the same issue. Unfortunately I don't have a Windows machine to reproduce this problem
У меня Postgres выдаёт ошибку о не правильном пароле для пользователя, почему так?
Привет, @Vimble!
Так сходу похоже, что пароль не правильный, но подозреваю, что ты все сделал по уроку и это то, что ты проверил в первую очередь. Чтобы много не писать тут, можешь добавиться в мой телеграмм-канал и мы обсудим эту проблему подробно там: t.me/capcodingchat
@@CapCoding воу, это круто что ты ответил на русском) Я уже разобрался с этим, но всё равно спасибо 🥰
@@CapCoding ааа, кажется ты русский, ну туплю я, да)
@@Vimble я не русский, но по-русски говорю 🙂
Хорошо, что разобрался с проблемой!
plz share git url
Hi. The link was in the description: github.com/Cap-Coding/symfony_docker
есть телеграм чат?
t.me/capcodingchat
все супер, вот на русском можно сделать такое видео .спасибо вам большое
Nginx (pronounced "engine X", /ˌɛndʒɪnˈɛks/ EN-jin-EKS)