Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
devweb:webapp:jobsworth [18-06-2013 09:39] edmc73 |
devweb:webapp:jobsworth [18-11-2015 10:02] (Version actuelle) edmc73 [Finalement...] |
||
---|---|---|---|
Ligne 38: | Ligne 38: | ||
configuration!</ | configuration!</ | ||
Ici nous allons modifier le fichier adéquate | Ici nous allons modifier le fichier adéquate | ||
- | vi / | + | vi / |
- | et ajouter | + | et ajouter |
+ | LoadModule passenger_module / | ||
PassengerRoot / | PassengerRoot / | ||
- | | + | |
+ | |||
+ | Si nécessaire, | ||
+ | a2dismod passenger | ||
< | < | ||
Ligne 84: | Ligne 88: | ||
On s' | On s' | ||
- | lib/ | + | |
| | ||
On répond aux questions et la 1ere fois on répond **y** pour **Initialize database schema [n]:** | On répond aux questions et la 1ere fois on répond **y** pour **Initialize database schema [n]:** | ||
Ligne 91: | Ligne 95: | ||
./update.sh | ./update.sh | ||
| | ||
- | | ||
- | J'ai du installer paperclip | ||
- | gem install paperclip | ||
| | ||
Et au cas ou | Et au cas ou | ||
chown -R www-data.www-data / | chown -R www-data.www-data / | ||
service apache2 restart | service apache2 restart | ||
+ | | ||
+ | ===== état des lieux ===== | ||
+ | |||
+ | < | ||
+ | ruby 1.9.3p429 (2013-05-15 revision 40747) [x86_64-linux] | ||
+ | |||
+ | [root]# rails -v | ||
+ | Rails 3.2.13 | ||
+ | |||
+ | [root]# rvm -v | ||
+ | rvm 1.20.13 (stable) by Wayne E. Seguin < | ||
+ | |||
+ | [root]# which ruby | ||
+ | / | ||
+ | |||
+ | [root]# which rails | ||
+ | / | ||
+ | |||
+ | [root]# which rvm | ||
+ | / | ||
+ | |||
+ | [root]# which passenger | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | ===== Finalement... ===== | ||
+ | Au final, rien ne fonctionne, ruby est pour moi une usine à gaz un peu comme nodeJS, ça installe des fichiers de partout sur le système et on a l' | ||
+ | |||
+ | Je vais donc faire marche arrière et tenter de faire le ménage car ruby prend déjà plus d'1 Go de place... | ||
+ | < | ||
+ | # rvm disk-usage all | ||
+ | | ||
+ | Repositories Usage: 257M | ||
+ | | ||
+ | Log Files Usage: 3,9M | ||
+ | Packages Usage: 2,1M | ||
+ | Rubies Usage: 119M | ||
+ | | ||
+ | Wrappers Usage: 296K | ||
+ | | ||
+ | Other Files Usage: 4,2M | ||
+ | Total Disk Usage: 1,1G | ||
+ | |||
+ | </ | ||
+ | |||
+ | Je me lance | ||
+ | < | ||
+ | # rvm remove all | ||
+ | Are you SURE you wish to ' | ||
+ | (anything other than ' | ||
+ | / | ||
+ | Removing / | ||
+ | Removing ruby-1.9.3-p429 aliases... | ||
+ | Removing ruby-1.9.3-p429 wrappers... | ||
+ | Removing ruby-1.9.3-p429 environments... | ||
+ | Removing ruby-1.9.3-p429 binaries... | ||
+ | / | ||
+ | Removing / | ||
+ | Removing ruby-2.0.0-p195 aliases... | ||
+ | Removing ruby-2.0.0-p195 wrappers... | ||
+ | Removing ruby-2.0.0-p195 environments... | ||
+ | Removing ruby-2.0.0-p195 binaries... | ||
+ | |||
+ | |||
+ | # rvm cleanup all | ||
+ | Cleaning up rvm archives | ||
+ | Cleaning up rvm repos | ||
+ | Cleaning up rvm src | ||
+ | Cleaning up rvm log | ||
+ | Cleaning up rvm tmp | ||
+ | Cleaning up rvm gemsets | ||
+ | Cleaning up rvm links | ||
+ | Cleanup done. | ||
+ | |||
+ | </ | ||
+ | |||
+ | On a gagné 1Go | ||
+ | < | ||
+ | # rvm disk-usage all | ||
+ | | ||
+ | Repositories Usage: 4,0K | ||
+ | | ||
+ | Log Files Usage: 4,0K | ||
+ | Packages Usage: 2,1M | ||
+ | Rubies Usage: 4,0K | ||
+ | | ||
+ | Wrappers Usage: 4,0K | ||
+ | | ||
+ | Other Files Usage: 4,1M | ||
+ | Total Disk Usage: 6,2M | ||
+ | </ |