This course will be retired on June 1, 2025.
Heads up! To view this whole video, sign in with your Courses Plus account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Deployment with Capistrano!
You have completed Deployment with Capistrano!
Preview
Learn about Capistrano and how it can help you deploy your app to servers automatically.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
[SOUND] In previous workshops
we manually deployed
0:00
our Rails app to a production environment.
0:04
We cloned Git repo with our Rails app
to a server, created the database,
0:09
set up configuration for
Nginx in Unicorn, and more.
0:13
For every additional server we set up,
we're going to need to repeat those steps.
0:16
And every time we release
a new app version,
0:20
we'll need to pull changes from Git and
restart our server.
0:22
If we do all this manually, over time
the potential for mistakes adds up.
0:26
So, in this course, we're going to show
you how to do all this automatically
0:30
using the Rails community's most popular
deployment framework, Capistrano.
0:33
Capistrano can make your deployments fast,
easy, and safe.
0:37
This guide covers Capistrano
3 which was released in 2013.
0:41
It has several incompatibilities
with Capistrano 2 and earlier.
0:45
So, when you're searching the web for
troubleshooting tips you should double
0:49
check any source written before 2013,
as the info may be outdated.
0:53
Also, be aware that Capistrano scripts
often have to be highly customized for
0:56
the environment they're deploying to.
1:00
We're deploying to a completely fresh
Ubuntu server using RPM, PostgreSQL,
1:02
and Nginx.
1:07
If you are set up different from this
in any way, you're almost certainly
1:09
going to have to make some changes
to the Capistrano code shown here.
1:12
Be sure to check the teacher's notes for
troubleshooting help and
1:15
try pasting any error messages
you get into a search engine.
1:18
Today, we'll be giving you
an introduction to Capistrano.
1:21
But in the end,
1:24
you'll have a little bit of work to do in
order to get it going with your setup.
1:24
Okay, ready?
1:28
Let's take Capistrano for a spin.
1:29
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up