Hi guys,
I made a quick app for a family member to be deployed on Dreamhost (low
budget). It’s my first time deploying on DH so I’m not familiar with the
restrictions.
I’m having an issue where I’ve been able to get git on both systems and
used capistrano to deploy the app. However migrations fail. I also tried
exporting my local staging mysql schema and importing it on the DH mysql
database for production (same schema) and the site still fails to load.
The only thing I can think of at the moment is that it is a gem issue. I
haven’t used any gems knowingly, I’ve only used plugins (authlogic,
enum-column, paperclip, searchlogic, and will_paginate). However, some
of these may use plugins (may) use gems. Anyone know of a way to get
this info easily?
OR… maybe it has nothing to do with gems?? Here is the passenger error
page just in case, Any help is appreciated!!:
A source file that the application requires, is missing.
It is possible that you didn’t upload your application files correctly.
Please check whether all your application files are uploaded.
A required library may not installed. Please install all libraries that
this application requires.
Further information about the error may have been written to the
application’s log file. Please check it in order to analyse the problem.
Error message:
no such file to load – application (MissingSourceFile)
Exception class:
PhusionPassenger::UnknownError
Application root:
/home/[domain]/store.[domain].com/current
Backtrace:
File Line Location
0 /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb 31 in
gem_original_require' 1 /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb 31 in
require’
2
/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb
155 in require' 3 /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb 262 in
require_or_load’
4
/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb
221 in depend_on' 5 /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb 133 in
require_dependency’
6
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb
18 in define_dispatcher_callbacks' 7 /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb 182 in
call’
8
/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb
182 in evaluate_method' 9 /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb 166 in
call’
10
/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb
90 in run' 11 /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb 90 in
each’
12
/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb
90 in send' 13 /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb 90 in
run’
14
/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb
277 in run_callbacks' 15 /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb 559 in
send’
16 /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb 559 in
prepare_dispatcher' 17 /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb 173 in
process’
18 /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb 112 in
send' 19 /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb 112 in
run’
20 ./config/environment.rb 9
21 /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb 31 in
gem_original_require' 22 /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb 31 in
require’
23 /dh/passenger/lib/phusion_passenger/railz/application_spawner.rb
303 in preload_application' 24 /dh/passenger/lib/phusion_passenger/railz/application_spawner.rb 252 in
initialize_server’
25 /dh/passenger/lib/phusion_passenger/utils.rb 230 in
report_app_init_status' 26 /dh/passenger/lib/phusion_passenger/railz/application_spawner.rb 237 in
initialize_server’
27 /dh/passenger/lib/phusion_passenger/abstract_server.rb 193 in
start_synchronously' 28 /dh/passenger/lib/phusion_passenger/abstract_server.rb 162 in
start’
29 /dh/passenger/lib/phusion_passenger/railz/application_spawner.rb
213 in start' 30 /dh/passenger/lib/phusion_passenger/spawn_manager.rb 261 in
spawn_rails_application’
31 /dh/passenger/lib/phusion_passenger/abstract_server_collection.rb
126 in lookup_or_add' 32 /dh/passenger/lib/phusion_passenger/spawn_manager.rb 255 in
spawn_rails_application’
33 /dh/passenger/lib/phusion_passenger/abstract_server_collection.rb
80 in synchronize' 34 /dh/passenger/lib/phusion_passenger/abstract_server_collection.rb 79 in
synchronize’
35 /dh/passenger/lib/phusion_passenger/spawn_manager.rb 254 in
spawn_rails_application' 36 /dh/passenger/lib/phusion_passenger/spawn_manager.rb 153 in
spawn_application’
37 /dh/passenger/lib/phusion_passenger/spawn_manager.rb 286 in
handle_spawn_application' 38 /dh/passenger/lib/phusion_passenger/abstract_server.rb 351 in
send’
39 /dh/passenger/lib/phusion_passenger/abstract_server.rb 351 in
main_loop' 40 /dh/passenger/lib/phusion_passenger/abstract_server.rb 195 in
start_synchronously’
41 /dh/passenger/bin/passenger-spawn-server 61