Capistrano & mongrel "Command Not Found"

Salut,

j’ai un problème assez étrange. Quand je tente de déployer ma recette
http://pastie.caboo.se/29191/text

à chaque fois j’ai capistrano n’arrive pas à lancer la commande
mongre_rails

** transaction: commit

  • executing task restart
  • executing task after_deploy
  • executing task spinner
  • executing “mongrel_rails”
    servers: [“lamp2”]
    [lamp2] executing command
    ** [out :: lamp2] bash: mongrel_rails: command not found
    command finished
    /Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/
    i386/lib/ruby/gems/1.8/gems/capistrano-1.2.0/lib/capistrano/
    command.rb:45:in `process!': command “mongrel_rails” failed on lamp2
    (RuntimeError)

J’ai volontairement mis simplement mongrel_rails pour isoler le problème

desc “La tache spinner est utilisée par :cold_deploy pour démarrer
application”
task :spinner, :roles => :app do
run "mongrel_rails "
end

Cependant quand je teste cette commande sur mon serveur directement
la commande fonctionne

Merci

Bolo M.
[email protected]
http://blog.developpez.com/index.php?blog=30

Bolo :

** [out :: lamp2] bash: mongrel_rails: command not found

Vérifie la valeur de $PATH quand tu passes par Capistrano.

Cependant quand je teste cette commande sur mon serveur
directement la commande fonctionne

Compare avec la valeur de $PATH quand tu exécutes la commande
directement sur le serveur.

РJean-Fran̤ois.

Salut Jean Francois

alors j’ai ajouté ca

run “echo $PATH”
run “mongrel_rails”

ca me donne ca

  • executing “echo $PATH”
    servers: [“lamp2”]
    [lamp2] executing command
    ** [out :: lamp2] /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
    command finished
  • executing “mongrel_rails”
    servers: [“lamp2”]
    [lamp2] executing command
    ** [out :: lamp2] bash: mongrel_rails: command not found
    command finished

Sur le serveur j’ai ca
b.michelin@srv-mq-lamp2:~$ echo $PATH
/var/lib/gems/1.8/bin:/var/lib/gems/1.8/gems/mongrel-0.3.13.4/bin:/
usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
b.michelin@srv-mq-lamp2:~$

Je n’ai pas installé le serveur mais adminstateur système mais je
trouve le path un peu c’est normal

PS: En Passant Joyeux Fêtes à toutes la Mailing List


À la renverse.


Railsfrance mailing list
[email protected]
http://lists.rubyonrails.fr/mailman/listinfo/railsfrance

Bolo M.
[email protected]
http://blog.developpez.com/index.php?blog=30

J’ai oublié de dire qu’il faut vérifier l’emplacement de mongrel_rails
directement sur le serveur, via un : which mongrel_rails.

Il est sûrement dans /var/lib/gems/1.8/bin.

Oui il est la

Il ne te reste plus qu’à : soit corriger $PATH en conséquence, soit
à appeler mongrel_rails avec le chemin absolu.

Corriger le Path de Capistrano ?

Je n’ai pas installé le serveur mais adminstateur système mais je
trouve le path un peu c’est normal

C’est un jeu ? Faut mettre les mots dans le bon ordre dans la phrase ?
C’est la caméra cachée ?

Désolé je suis dyslexique parfois j’oublie des mots.
Je voulais juste savoir avoir mongrel ici /var/lib/gems/1.8/bin/
mongrel_rails. Est ce c’est bien propre.
J’ai des doutes

Merci

РJean-Fran̤ois.


À la renverse.


Railsfrance mailing list
[email protected]
http://lists.rubyonrails.fr/mailman/listinfo/railsfrance

Bolo M.
[email protected]
http://blog.developpez.com/index.php?blog=30

Bolo :

  • executing “mongrel_rails”
    servers: [“lamp2”]
    [lamp2] executing command
    ** [out :: lamp2] bash: mongrel_rails: command not found
    command finished

Sur le serveur j’ai ca
b.michelin@srv-mq-lamp2:~$ echo $PATH
/var/lib/gems/1.8/bin:/var/lib/gems/1.8/gems/mongrel-0.3.13.4/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
b.michelin@srv-mq-lamp2:~$

J’ai oublié de dire qu’il faut vérifier l’emplacement de mongrel_rails
directement sur le serveur, via un : which mongrel_rails.

Il est sûrement dans /var/lib/gems/1.8/bin.
Il ne te reste plus qu’à : soit corriger $PATH en conséquence, soit
à appeler mongrel_rails avec le chemin absolu.

Je n’ai pas installé le serveur mais adminstateur système mais je
trouve le path un peu c’est normal

C’est un jeu ? Faut mettre les mots dans le bon ordre dans la phrase ?
C’est la caméra cachée ?

-- Jean-François.