Teach Me To Code » Screencasts (iPhone/iPod)

Capistrano: Deploying Ruby on Rails Applications to Multiple Servers


Listen Later

For a basic deployment recipe, check out Basic Deployment with Capistrano
This episode demonstrates how to extend deployment to deploy to stage and production. Overall it’s rather simple. All it entails is creating a new task for each stage you want to deploy to with the settings you need changed.
Here’s an example:
task :stage do
role :web, "stage.teachmetocodeacademy.com" # Your HTTP server, Apache/etc
role :app, "stage.teachmetocodeacademy.com" # This may be the same as your `Web` server
role :db, "stage.teachmetocodeacademy.com", :primary => true # This is where Rails migrations will run
set :deploy_to, '/var/www/stage-teachmetocodeacademy/'
set :user, 'deploy'
end
That will allow you to run `cap stage deploy` to deploy to your staging environment.
 
Download 55.3 MB
Download (iPod & iPhone) 35.1 MB
...more
View all episodesView all episodes
Download on the App Store

Teach Me To Code » Screencasts (iPhone/iPod)By Charles Max Wood

  • 4.3
  • 4.3
  • 4.3
  • 4.3
  • 4.3

4.3

3 ratings


More shows like Teach Me To Code » Screencasts (iPhone/iPod)

View all
JavaScript Jabber by Charles M Wood

JavaScript Jabber

235 Listeners

iPhreaks by Charles M Wood

iPhreaks

17 Listeners

Ruby Rogues by Charles M Wood

Ruby Rogues

45 Listeners

The Freelancers' Show by Charles M Wood

The Freelancers' Show

23 Listeners

Adventures in Angular by Charles M Wood

Adventures in Angular

33 Listeners

React Native Radio by Jamon Holmgren, Robin Heinze, Mazen Chami

React Native Radio

57 Listeners

My JavaScript Story by Charles M Wood

My JavaScript Story

4 Listeners

JavaScript Jabber by Charles M Wood

JavaScript Jabber

61 Listeners

Ruby Rogues by Charles M Wood

Ruby Rogues

21 Listeners

Adventures in Angular by Charles M Wood

Adventures in Angular

15 Listeners