Outils pour utilisateurs

Outils du site


tech:notes_ruby_capistrano

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

tech:notes_ruby_capistrano [2026/06/07 19:12] – créée - modification externe 127.0.0.1tech:notes_ruby_capistrano [2026/07/16 11:58] (Version actuelle) Jean-Baptiste
Ligne 1: Ligne 1:
 <!DOCTYPE markdown> <!DOCTYPE markdown>
-{{tag>Brouillon Ruby}}+{{tag>Brouillon Ruby Paquet}}
  
 # Notes ruby capistrano # Notes ruby capistrano
Ligne 7: Ligne 7:
  
 ### Création du paquage Capistrano (utilisable en userland) ### ### Création du paquage Capistrano (utilisable en userland) ###
 +
 Voir https://rvm.io/integration/capistrano/#gem Voir https://rvm.io/integration/capistrano/#gem
  
  
-[INSTALL DE RVM Ruby Version Manager]+INSTALL DE RVM Ruby Version Manager 
 -> Voir https://rvm.io/ -> Voir https://rvm.io/
  
--Prerequis+Prerequis 
 +~~~bash
 yum install libxslt-devel curl git patch gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison iconv-devel yum install libxslt-devel curl git patch gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison iconv-devel
 yum install ruby-libs # (a verifier !) yum install ruby-libs # (a verifier !)
 +~~~
  
 -Install -Install
 +~~~bash
 curl -L https://get.rvm.io | bash -s stable --ruby curl -L https://get.rvm.io | bash -s stable --ruby
 +~~~
  
- +INSTALL DE CAPISTRANO 
-[INSTALL DE CAPISTRANO]+~~~bash
 ~/.rvm/rubies/*/bin/gem install --user rvm-capistrano ~/.rvm/rubies/*/bin/gem install --user rvm-capistrano
 +~~~
  
  
-[CREATION DU SCRIPT DE LANCEMENT] +SCRIPT DE LANCEMENT 
-vi ~/bin/cap +`~/bin/cap` 
----+~~~bash
 #! /bin/bash #! /bin/bash
  
Ligne 34: Ligne 41:
  
 $RUBY $CAP $* $RUBY $CAP $*
----+~~~ 
 + 
 +~~~bash
 chmod +x ~/bin/cap chmod +x ~/bin/cap
 +~~~
  
  
-[TEST DE CAPISTRANO]+TEST DE CAPISTRANO 
 +~~~bash
 ~/bin/cap shell ~/bin/cap shell
 +~~~
  
 +CONSCRUCTION DU PAQUET
  
-[CONSCRUCTION DU PAQUET]+~~~bash
 find /home/eib/.gem /home/eib/.rvm/rubies/ruby-* /home/eib/.rvm/gems/ruby-* /home/eib/.rvm/environments /home/eib/.rvm/bin /home/eib/bin/cap -depth | cpio -ov --format=ustar | gzip >captistrano.tar.gz find /home/eib/.gem /home/eib/.rvm/rubies/ruby-* /home/eib/.rvm/gems/ruby-* /home/eib/.rvm/environments /home/eib/.rvm/bin /home/eib/bin/cap -depth | cpio -ov --format=ustar | gzip >captistrano.tar.gz
 +~~~
  
-NB : les repertoires nécessaires au paquet peuvent être trouvé à l'aide de "strace".  +NB : les répertoires nécessaires au paquet peuvent être trouvé à l'aide de "strace"
-=>Voir NOTES.+
  
 +Voir NOTES.
  
-[DEINSTALL]+ 
 +DEINSTALL 
 +~~~bash
 rm -rf ~/.rvm ~/.gem ~/bin/cap rm -rf ~/.rvm ~/.gem ~/bin/cap
 +~~~
  
- +NOTES
-[NOTES]+
 http://henriksjokvist.net/archive/2012/2/deploying-with-rbenv-and-capistrano/ http://henriksjokvist.net/archive/2012/2/deploying-with-rbenv-and-capistrano/
  
Ligne 59: Ligne 75:
  
 Pour relancer la compilation de ruby : Pour relancer la compilation de ruby :
 +~~~bash
 rvm reinstall all --force rvm reinstall all --force
 +~~~
  
-Pour trouver les repertoires nécessaires à la creation du paquet+Pour trouver les repertoires nécessaires à la création du paquet 
 +~~~bash
 /bin/ls -ld $(strace -f -e trace=file cap 2>&1 | grep -v 'No such file or directory' | grep open | cut -d'"' -f2 | grep '/home/eib/.rvm/') | grep ^d|awk '{print $9}' /bin/ls -ld $(strace -f -e trace=file cap 2>&1 | grep -v 'No such file or directory' | grep open | cut -d'"' -f2 | grep '/home/eib/.rvm/') | grep ^d|awk '{print $9}'
 +~~~
  
- +~~~bash 
- ~/.rvm/bin/gem-ruby-2.0.0-p0 update +~/.rvm/bin/gem-ruby-2.0.0-p0 update 
 +~~~ 
  
tech/notes_ruby_capistrano.1780852327.txt.gz · Dernière modification : de 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki