Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Mushr00m's avatar

A lesson about Git deployment ?

Sorry if I post on the wrong place, I think "requests" are for asking Jeffrey to add some stuffs on Laracast, but maybe it should be on "Site improvements".

Back to my "request", if it's possible could you make a video on your Git usage for deployment. I mean by that the full workflow from finishing an app Foo to pushing it on your production server. I'm asking that because I think I'm not the only one using FTP to put everything on the production server and still using Git only for versioning.

I also read a lot of thread talking about how awsome and better it is to deploy using GIT but can't find how to handle all the little "tricky parts" like config files that are differents on the local and on the production server, the DB (use a local one only for testing maybe ?), htacces files with rules for the domain and redirection, etc. And also when having projects with CMS like Wordpress, Drupal, Magento, do you still use Git to deploy and is it also easy.

I was starting to thinking about that when I saw the amount of people that are using editor like Brackets, Sublime and Atom, that doesn't have a FTP layer, so I couldn't figure out, how do most of them handle the publishing part (I hope not with an third party FTP app and doing drags and drops ^^). So maybe I'm missing something awsome ?!

Thanks

0 likes
3 replies
Rufhausen's avatar

This would be nice since a lot of us don't have the option of using Forge or a similar solution due to the remote environment(s) we are using. In the meantime, I'm currently using my own little (far from perfect I'm sure) solution using Artisan and the SSH remote capabilities within Laravel which I just put in a little blog post in case it's of use to anyone: http://thereluctantdeveloper.com/2014/11/using-laravels-artisan-with-git-for-deployment

janderson's avatar

I'd also be interested to see Jeffery's approach to Continuous Integration/Continuous Delivery using git post-commit hooks to trigger the build. I use GitHub, Travis-CI, Chef and Thoughtworks Go currently. There are so many ways to do this with the embarrassment of cloud riches that exist now. It is a field unto itself.

1 like

Please or to participate in this conversation.