Forum: Rails France Impossible de déployer avec Passenger..

A69d8227e3f6647127fc5f02eedad8b9?d=identicon&s=25 quentin kekette (kekette)
on 2012-07-06 14:35
Bonjour à tous,
Nouveau dans le monde du RoR, j'essaye de déployer un site que j'ai
développé.
J'ai donc un serveur distant, avec apache, passenger d'installé tout ca
J'arrive a envoyer sur mon serveur grace à capistrano
Mais une fois que je vais sur le site, Passenger me sort une erreur :
uninitialized constant Regitron (regitron est le nom de mon site)...
Pas cool, ca viendrait donc du fichier config.ru, je pense
Mais voila mon fichier :
require ::File.expand_path('../config/environment',  __FILE__)
run Regitron::Application

Et il me dit que ca plante la dessus...
Voila le fichier de log d'apache :

[ pid=25533 thr=8945780 file=utils.rb:176 time=2012-07-06 14:14:25.096
]: *** Exception NameError in PhusionPassenger::Rack::ApplicationSpawner
(uninitialized constant Regitron) (process 25533, thread
#<Thread:0x000000011100e8>):
        from
/var/www/Regitron/releases/20120706090554/config/environment.rb:4:in
`<top (required)>'
        from config.ru:1:in `require'
        from config.ru:1:in `block in <main>'
        from
/var/www/Regitron/releases/20120706090554/vender/cache/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:in
`instance_eval'
        from
/var/www/Regitron/releases/20120706090554/vender/cache/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:in
`initialize'
        from config.ru:1:in `new'
        from config.ru:1:in `<main>'
        from
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/rack/application_spawner.rb:225:in
`eval'
        from
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/rack/application_spawner.rb:225:in
`load_rack_app'
        from
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/rack/application_spawner.rb:157:in
`block in initialize_server'
        from
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/utils.rb:572:in
`report_app_init_status'
        from
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/rack/application_spawner.rb:154:in
`initialize_server'
        from
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/abstract_server.rb:204:in
`start_synchronously'
        from
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/abstract_server.rb:180:in
`start'
        from
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/rack/application_spawner.rb:129:in
`start'
        from
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/spawn_manager.rb:253:in
`block (2 levels) in spawn_rack_application'
        from
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/abstract_server_collection.rb:132:in
`lookup_or_add'
        from
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/spawn_manager.rb:246:in
`block in spawn_rack_application'
        from
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/abstract_server_collection.rb:82:in
`block in synchronize'
        from <internal:prelude>:10:in `synchronize'
        from
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/abstract_server_collection.rb:79:in
`synchronize'
        from
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/spawn_manager.rb:244:in
`spawn_rack_application'
        from
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/spawn_manager.rb:137:in
`spawn_application'
        from
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/spawn_manager.rb:275:in
`handle_spawn_application'
        from
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/abstract_server.rb:357:in
`server_main_loop'
        from
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/abstract_server.rb:206:in
`start_synchronously'
        from
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/helper-scripts/passenger-spawn-server:99:in
`<main>'


Si quelqu'un sait ce qu'il faut que je mette dans mon fichier config.ru
pour lancer l'appli, ca serait vraiment bien!
Merci a tous
Bonne journée
A69d8227e3f6647127fc5f02eedad8b9?d=identicon&s=25 quentin kekette (kekette)
on 2012-07-06 15:54
C'est bon, j'ai trouvééé!! XD
Pour ceux qui cherchent encore :
Il manquait un require dans config.ru
la ligne :
require ::File.expand_path('../config/application', __FILE__)
Voilou!!!
This topic is locked and can not be replied to.