Hello again,

 From my previous e-mail, I could create the necessary files on the  
remote server (cap deploy:setup) as a root, and then changed the user  
to the 'user' (who made the the :deploy, :update, ...), and give the  
permissions to the folder to my 'user'

All the files are there.

The problem now, is that I can't start mongrel.

MontxMacBookPro:scanner montx$ cap deploy:start
   * executing `deploy:start'
   * executing "cd /u/apps/scanner/current && sudo -p 'sudo password:  
' -u rai nohup script/spin"
     servers: ["192.168.2.191"]
Password:
     [192.168.2.191] executing command
*** [err :: 192.168.2.191] /usr/bin/env: ruby: No such file or directory
     command finished
failed: "sh -c \"cd /u/apps/scanner/current && sudo -p 'sudo password:  
' -u rai nohup script/spin\"" on 192.168.2.191
MontxMacBookPro:scanner montx$


The file is there:

debian:/u/apps/scanner/current/script# ls -l
total 44
-rwxrwxr-x 1 rai rai  152 2009-01-31 19:43 about
-rwxrwxr-x 1 rai rai   98 2009-01-31 19:43 console
-rwxrwxr-x 1 rai rai  100 2009-01-31 19:43 dbconsole
-rwxrwxr-x 1 rai rai   98 2009-01-31 19:43 destroy
-rwxrwxr-x 1 rai rai   99 2009-01-31 19:43 generate
drwxrwxr-x 2 rai rai 4096 2009-01-31 19:43 performance
-rwxrwxr-x 1 rai rai   97 2009-01-31 19:43 plugin
drwxrwxr-x 2 rai rai 4096 2009-01-31 19:43 process
-rwxrwxr-x 1 rai rai   97 2009-01-31 19:43 runner
-rwxrwxr-x 1 rai rai   97 2009-01-31 19:43 server
-rwxrwxr-x 1 rai rai  157 2009-01-31 19:43 spin
debian:/u/apps/scanner/current/script#


After installing gem, rails, mongrel, ... on the remote server, I had  
to add two alias to the bash files:

alias ruby=ruby1.8
alias irb=irb1.8

my list of gems:

r...@debian:/$ gem list

*** LOCAL GEMS ***

actionmailer (2.2.2)
actionpack (2.2.2)
activerecord (2.2.2)
activeresource (2.2.2)
activesupport (2.2.2)
cgi_multipart_eof_fix (2.5.0)
daemons (1.0.10)
fastthread (1.0.1)
gem_plugin (0.2.3)
mongrel (1.1.5)
mongrel_cluster (1.0.5)
pg (0.7.9.2008.10.13)
rails (2.2.2)
rake (0.8.3)
r...@debian:/$


my versions:

r...@debian:/$ irb -v
irb 0.9.5(05/04/13)
r...@debian:/$ gem -v
1.2.0
r...@debian:/$ ruby --version
ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]
r...@debian:/$ rails --version
-bash: rails: command not found
r...@debian:/$


as you can see, I can't execute rails, but the gem is installed, so I  
suspect this must be the problem ...

all of this works on my testing machines that run OS X, the problem is  
with my Debian Lenny

thanks,

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