running capistrano on localhost

1,516 views
Skip to first unread message

liquid_rails

unread,
Feb 12, 2010, 3:31:22 PM2/12/10
to Capistrano
I want to deploy capistrano on my local machine. I am using passenger/
apache2/enterprise.

In my deploy.rb file I have set

role :web, "localhost"
role :app, "localhost"
role :db, ""localhost"
set :deploy_to, "/var/www"

--------
In my apache2.conf file, my server root is set to "/var/www/current/
public"
-----

When I run cap deploy:setup, I get the following error:
[err:: localhost]

Can anyone see what the problem is? Also, I have not manually started
apache2. I don't know how to do that, or even if I need to.

Thank you in advance for your help!

Cheri

Lee Hambley

unread,
Feb 12, 2010, 4:10:20 PM2/12/10
to capis...@googlegroups.com
Cheri,

I refer you to the one-liner for Capistrano:

Capistrano is a tool for automating tasks on one or more remote servers. It executes commands in parallel on all targeted machines, and provides a mechanism for rolling back changes across multiple machines.

It's not designed for what you're doing.... but what's your goal?

-- Lee Hambley

Twitter: @leehambley | @capistranorb

liquid_rails

unread,
Feb 12, 2010, 4:25:28 PM2/12/10
to Capistrano
I'm trying to learn capistrano on my own machine before deploying to
slicehost! It should still be possible to run it on the localhost.

Donovan Bray

unread,
Feb 12, 2010, 8:55:24 PM2/12/10
to capis...@googlegroups.com, Capistrano
I have a stage built that runs against localhost. The only trick is
that you have to be able to ssh to your localhost so setup and test
your ssh agent that you can ssh as the correct user before attempting
to use cap tasks on it.

On Feb 12, 2010, at 1:25 PM, liquid_rails <cheri.a...@gmail.com>
wrote:

> --
> * You received this message because you are subscribed to the Google
> Groups "Capistrano" group.
> * To post to this group, send email to capis...@googlegroups.com
> * To unsubscribe from this group, send email to capistrano+...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/capistrano?hl=en

Hassan Schroeder

unread,
Feb 12, 2010, 4:45:17 PM2/12/10
to capis...@googlegroups.com
On Fri, Feb 12, 2010 at 1:25 PM, liquid_rails <cheri.a...@gmail.com> wrote:
> I'm trying to learn capistrano on my own machine before deploying to
> slicehost!  It should still be possible to run it on the localhost.

Set up a VM (VirtualBox or VMWare + some Linux distro) on your
system as your "remote host". More realistic learning, less chance
of trashing anything valuable + you can always back up to a recent
snapshot.

--
Hassan Schroeder ------------------------ hassan.s...@gmail.com
twitter: @hassan

Lee Hambley

unread,
Feb 13, 2010, 7:05:44 AM2/13/10
to capis...@googlegroups.com
I second what Hassan suggested, I used to have a VMware appliance that I wanted to share, but I stopped using it, and it fell into disrepair.

As Hassan rightly suggests though - this is the safest and most realistic, as the same process you use to build your slicehost machine can be used to build a replica VM, and then you have a like-for-like environment to test against.

Sun's VirtualBox is free (as far as I remember) and both parallels and vmware are great, great pieces of software - I'm sure you could find trial versions somewhere.
Reply all
Reply to author
Forward
0 new messages