Hello,

I'm totally new to Capistrano and git.

I'm trying to push one of my Rails into a production server, at this
moment it's a computer at my side, for testing purposes.

I have installed git in my developer machine, I don't use any other
repository or share it with no-one.

While executing the cap deploy:check I get an error:


ontxMacBookPro:scanner montx$ cap deploy:check
  * executing `deploy:check'
  * executing "test -d /u/apps/scanner/releases"
    servers: ["192.168.2.200"]
Password:
    [192.168.2.200] executing command
    command finished
  * executing "test -w /u/apps/scanner"
    servers: ["192.168.2.200"]
    [192.168.2.200] executing command
    command finished
  * executing "test -w /u/apps/scanner/releases"
    servers: ["192.168.2.200"]
    [192.168.2.200] executing command
    command finished
  * executing "which git"
    servers: ["192.168.2.200"]
    [192.168.2.200] executing command
    command finished
  * executing "test -w /u/apps/scanner/shared"
    servers: ["192.168.2.200"]
    [192.168.2.200] executing command
    command finished
The following dependencies failed. Please check them and try again:
--> `git' could not be found in the path (192.168.2.200)
MontxMacBookPro:scanner montx$

So, the problem is with the repository of git.

The deploy.rb has few data:


set :application, "scanner"
set :repository,  "[email protected]/scanner.git"

set :scm, :git
set :scm_username, 'xxxxx'
set :scm_password, proc{Capistrano::CLI.password_prompt('GIT pass:')}

role :app, "192.168.2.200"
role :web, "192.168.2.200"
role :db,  "192.168.2.200", :primary => true

set :deploy_via, :remote_cache

set :user, "xxxxxxx"


I though it wasn't necessary to install git on the production machine,
just in case I've installed it, but I'm getting the same error.

My git repository is in my local machine:

MontxMacBookPro:~ montx$ cd Documents/Ruby/scanner/

How I have to specify my repository in the deploy.rb ?

thanks,

regards,

r.


--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to