Watch videos with subtitles in your language, upload your videos, create your own subtitles! Click here to learn more on "how to Dotsub"

Git, Deployment and Beanstalk

0 (0 Likes / 0 Dislikes)
[robotic voice] Drupalize.Me. [ - Learn Drupal] [♪♪] [Git, Deployment and - Deploying Your Code Without a Terminal] [Chapter 1 with Kyle Hofmeyer] In this lesson we're going to cover what I like to call the newbies or maybe the novice users or maybe the "I want to play with the big boys "but I don't want to use the big boys' toys" or big girls, if you will. So what is this? It's code deployment with Deploy your code and never open a terminal. What does it mean to deploy your code? I looked up deploy and I was going to put a fantastic definition of it right here, but instead I made one up. Move your code from environments such as local to production. Well, I do this already. I open up my FTP program, I drag the folder that has my website that I've been working on locally, and I drag it to my server, and it uploads. And there you go, I deployed my site. Sure, you deployed your site, but what you didn't do was your site was not in version control. Version control is a must. It's not just for developers. Again, it's not just for developers. I can easily say that because I am not a developer. But what I do is I work on websites, and I do a lot of stuff and I do it in version control. Why do I do that? I was told to and because I wanted to learn how to do it and I found out why it's a good idea to put stuff into version control. Why is it? First of all, this gives you a backup of everything that you're working on. You can now be part of the team. Teams work in version control systems, and everybody is working on different things, and those things come together and they're brought together, and the version control system handles all of this. And that's why version control is helpful. Also you can fix your mistakes. So if you realize down the line that yesterday that was working, today it's not, what can I do? Version control can allow you to roll back to yesterday if you want. Also, version control is just a good idea. Git. Git is a type of version control. It's a type of version control we're going to be discussing in this lesson. It's also the type of version control that Drupal uses, hence the reason why we're talking about it. Git: You don't have to be a rocket scientist to use it, although being a rocket scientist might help you use terminal and do some crazy stuff and put some cool commands in there that run all these things that are going on inside of Git. But guess what? You don't need to do that to be able to take advantage of Git and version control. Also there's a GUI for that. Sure, Git does have many, many, many GUIs out there for Windows or for Mac. In this lesson we're going to be using Tower, a Git GUI, on the Mac operating system. And like I said, Git--it's what's Drupal uses, it's what the contributor modules use, and it's what core uses. Finally, like I mentioned, it's excellent for collaboration, and Git makes bringing people's codes and figuring out conflicts together a lot easier. Deployment. Never manually FTP or SFTP your site again. It's fantastic. You'll never have to do that again. You only update what needs updating. It's not a matter of what we used to do, which was just probably grabbing all the files to our site and uploading them in or maybe even just a folder of files. You can work locally, and then what you'll do is you'll use deployment, and that will basically take what you've done and get it to your production server. And finally, we're going to be working with the This makes this all super easy with no terminal required. We're going to show you how you can have a repository, make some changes locally, commit those into the repository, merge that into your master branch, and then what we're going to do is we're going to have that deployed to your production server. And you can do all of this--all of this--with just a GUI and a web interface. [ - Learn Drupal]

Video Details

Duration: 3 minutes and 46 seconds
Country: United States
Language: English
License: All rights reserved
Genre: None
Views: 78
Posted by: drupalizeme on Feb 6, 2013

In this lesson, we will cover the advantages of using version control to deploy your code into a working environment. We'll look at using Git for version control, and how Beanstalk can help you manage your code.

Caption and Translate

    Sign In/Register for Dotsub to translate this video.