Put Your App Online With Trucker.io
Created by Floor Drees, @floordrees for Rails Girls Leiden
Get Trucker
Follow steps 1 through 3 of the Getting Started guide to create an account, install the command line tool and login.
To install trucker-cli
(the command line tool), type:
Log in Trucker
You can create and manage applications using the Trucker control panel. However you will need to also log in using the Trucker command line client:
At this point, the Trucker client will require that you choose a space to work in. Spaces are environments whose purpose is to organize your applications based on their life-cycle stage. Your Trucker account comes equipped with the following spaces:
COACH: Talk about the benefits of deploying to Trucker.io (and having datacenters in Europe, rather than the US).
Version Control
We need to add our code to version control. You can do this by running the following in the terminal:
COACH: This would be a great time to talk about version control systems and git.
Deploy your application to Trucker
Push the application to Trucker.io
First perform a push
command and enter the name you want your application to sport (we used ‘railsgirls’).
Next, add MySQL as your database:
COACH: Talk about MySQL.
We don’t want to add other services, so you can answer the following questions with n
:
After saving your application
your app will be deployed. The output in your terminal should look something like this:
Your application is now available at http://railsgirls.ie.trucker.io!