Chapters
24 Chapters
|
2:45:42
|
Login to bookmark this video
-
Course Code
Subscribe to download the code!Compatible PHP versions: >=5.5.9
Subscribe to download the code!Compatible PHP versions: >=5.5.9
-
This Video
Subscribe to download the video!
Subscribe to download the video!
-
Subtitles
Subscribe to download the subtitles!
Subscribe to download the subtitles!
-
Course Script
Subscribe to download the script!
Subscribe to download the script!
20.
Deploying to Multiple Servers
Scroll down to the script below, click on any sentence (including terminal blocks) to jump to that spot in the video!
Subscribe to jump to this part in the video!
Keep on Learning!
If you liked what you've learned so far, dive in! Subscribe to get access to this tutorial plus video, code and script downloads.
While the fundamentals of Ansistrano haven't changed, this tutorial is built using Symfony 3, which has significant differences versus Symfony 4 and later.
What PHP libraries does this tutorial use?
// composer.json
{
"require": {
"php": ">=5.5.9",
"doctrine/doctrine-bundle": "^1.6", // 1.6.8
"doctrine/orm": "^2.5", // v2.7.2
"incenteev/composer-parameter-handler": "^2.0", // v2.1.2
"sensio/distribution-bundle": "^5.0.19", // v5.0.20
"sensio/framework-extra-bundle": "^3.0.2", // v3.0.26
"symfony/monolog-bundle": "^3.1.0", // v3.1.0
"symfony/polyfill-apcu": "^1.0", // v1.4.0
"symfony/swiftmailer-bundle": "^2.3.10", // v2.6.3
"symfony/symfony": "3.3.*", // v3.3.5
"twig/twig": "^1.0||^2.0", // v1.34.4
"doctrine/doctrine-migrations-bundle": "^1.2", // v1.2.1
"predis/predis": "^1.1", // v1.1.1
"composer/package-versions-deprecated": "^1.11" // 1.11.99
},
"require-dev": {
"sensio/generator-bundle": "^3.0", // v3.1.6
"symfony/phpunit-bridge": "^3.0", // v3.3.5
"doctrine/data-fixtures": "^1.1", // 1.3.3
"hautelook/alice-bundle": "^1.3" // v1.4.1
}
}
What Ansible libraries does this tutorial use?
# ansible/requirements.yml
-
src: DavidWittman.redis
version: 1.2.4
-
src: ansistrano.deploy
version: 2.7.0
-
src: ansistrano.rollback
version: 2.0.1
8 Comments
Hi SymfonyCast Team:
Videos on chapter 20 and 21, cann't be played, HD or SD
404 Not Found
https://player.vimeo.com/ex...
https://player.vimeo.com/ex...
Regards
Hey Omar,
We're sorry for this! I just fixed this, now the videos are playable for me. Thank you for reporting this! Please, let us know if you still can't play them.
Cheers!
Thanks!
Sure no problem, I check the videos and now i can play them 👍...
And before the fix having the option to download videos is great to sort this kind of things.
Hey Omar,
Ah, yeah, download is always a good fallback option in case of any issues to play the video on the website, good catch! :)
And thanks for confirming it works for you now!
Cheers!
Hello guys,
Is there a way to deploy a symfony app using containers? I normally deploy them using a normal EC2 server but now I have this requirement from one member of our team. I don't know much about this type of architecture but I think I would need to split my app in microservices.
I hope you can give me some tip.
Cesar
Hey Cesar!
Sorry for the slow reply! Unfortunately, I can't offer much specific guidance about Docker & containers (we use Docker a bit locally, but not on production). But I can offer you two things:
1) API Platform ships with full Docker support and they have information about deployment with Docker. I'm not saying you should use API Platform (you can, but that's not the point) - just that they have a nice guide that might be relevant to you - https://api-platform.com/do...
2) Here at SymfonyCasts, we have 3 micro-services that support our main application. We deploy all of this via SymfonyCloud, which we love. It uses containers behind the scenes, but most/all of the complexity is abstracted away from us :).
Good luck!
Thanks for answering Ryan.
Are you planning to do a screencast of Symfony Cloud?
Yes! It's on our list, but we don't have a timeline yet (which means it's not in the top few tutorials on our list). However, I'd be happy to answer questions about it if you have them :).
Cheers!
"Houston: no signs of life"
Start the conversation!