Impossible de déployer avec Passenger


#1

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:inrequire’
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:ininstance_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:innew’
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:ineval’
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:inblock 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:ininitialize_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:instart’
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:inblock (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:inblock 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:insynchronize’
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:inspawn_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:inhandle_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:instart_synchronously’
from
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/helper-scripts/passenger-spawn-server:99:in
`’

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


#2

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!!!