This workshop will be retired on May 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
Start a free Courses trial
to watch this video
In previous courses, we've been working with Rails in the "development" and "test" environments. In order to make our work publicly accessible, we're going to need a server with a "production" Rails environment. Let's get Ruby and Ruby on Rails installed on our server. There are several Linux libraries that need to be in place before we can install Ruby. So first we'll use your system's package manager to install those.
To follow along you'll need a Linux server or virtual machine. It should be set up with a deployment user that has full administrative access via the sudo
command.
If you have a hosting service such as Amazon Web Services, Rackspace, or DigitalOcean, you can just set up a server through your account there. If you don't, visit our Linux Servers on VirtualBox workshop to learn how to run a Linux server within your current operating system on your computer (for free!).
Installing System Libraries
Before you can install Ruby, you'll need to run these two commands on your server. (The $
represents the prompt, so leave that out.)
$ sudo apt-get update
$ sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev libffi-dev nodejs
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
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