Hi Peter,
I've not used the heroku rake db:migrate approach, so can't help
directly, but assuming everything's working on your local dev version,
can you try this alternative deployment approach?

1) after you've got your local git up to date via

git add .
git commit -m "whatever your comment is about this version"

2) deploy your app onto heroku...
git push -f heroku

3) then take your local database and copy it to heroku...

heroku db:push

if that doesn't work, let me know...

br
Paul

On 15 May, 14:30, PeterW <[email protected]> wrote:
> Hi,
>
> I tried do deploy my first hobo app on Heroku, but ran into some
> troubles I cannot solve myself. Important to say that my app is
> working perfectly in development as in production mode on my own pc.
>
> Deploying on heroku went fine until I tried to open the app in a
> browser.  Heroku tells me that "Object is not missing constant User!"
> and I have been trying to find out what that means for two days now,
> but I am still as far from a solution than two days ago :/
>
> This is the adress:http://falling-sword-91.heroku.com/
> I put the code on github:http://github.com/wurmi/guild
>
> Here is the full error output from terminal (if i try to migrate the
> database):
>
> MacBook:guild peterw$ heroku rake db:migrate --trace
> rake aborted!
> Object is not missing constant User!
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
> active_support/dependencies.rb:417:in `load_missing_constant'
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
> active_support/dependencies.rb:80:in `const_missing'
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
> active_support/dependencies.rb:92:in `const_missing_before_generators'
> /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails_generator/
> lookup.rb:15:in `const_missing'
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
> active_support/dependencies.rb:98:in `send'
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
> active_support/dependencies.rb:98:in `const_missing_before_generators'
> /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails_generator/
> lookup.rb:15:in `const_missing'
> /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/
> base.rb:2197:in `compute_type'
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
> active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
> /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/
> base.rb:2195:in `compute_type'
> /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/
> reflection.rb:156:in `send'
> /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/
> reflection.rb:156:in `klass_without_create_polymorphic_class'
> /home/slugs/185492_455ee81_f917/mnt/.gems/gems/hobo-1.0.0/lib/
> active_record/association_reflection.rb:15:in `klass'
> /home/slugs/185492_455ee81_f917/mnt/.gems/gems/hobo-1.0.0/lib/hobo/
> model.rb:198:in `belongs_to_without_field_declarations'
> /home/slugs/185492_455ee81_f917/mnt/.gems/gems/hobofields-1.0.0/lib/
> hobo_fields/model_extensions.rb:90:in `belongs_to'
> /disk1/home/slugs/185492_455ee81_f917/mnt/app/models/char.rb:19
> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> `gem_original_require'
> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> `require'
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
> active_support/dependencies.rb:158:in `require'
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
> active_support/dependencies.rb:265:in `require_or_load'
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
> active_support/dependencies.rb:425:in `load_missing_constant'
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
> active_support/dependencies.rb:80:in `const_missing'
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
> active_support/dependencies.rb:92:in `const_missing_before_generators'
> /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails_generator/
> lookup.rb:15:in `const_missing'
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
> active_support/inflector.rb:361:in `constantize'
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
> active_support/inflector.rb:360:in `each'
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
> active_support/inflector.rb:360:in `constantize'
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
> active_support/core_ext/string/inflections.rb:162:in `constantize'
> /home/slugs/185492_455ee81_f917/mnt/.gems/gems/hobo-1.0.0/lib/hobo/
> model_controller.rb:86:in `model'
> /home/slugs/185492_455ee81_f917/mnt/.gems/gems/hobo-1.0.0/lib/hobo/
> model_controller.rb:299:in `available_auto_write_actions'
> /home/slugs/185492_455ee81_f917/mnt/.gems/gems/hobo-1.0.0/lib/hobo/
> model_controller.rb:287:in `available_auto_actions'
> /home/slugs/185492_455ee81_f917/mnt/.gems/gems/hobo-1.0.0/lib/hobo/
> model_controller.rb:128:in `auto_actions'
> /disk1/home/slugs/185492_455ee81_f917/mnt/app/controllers/
> chars_controller.rb:5
> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> `gem_original_require'
> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> `require'
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
> active_support/dependencies.rb:158:in `require'
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
> active_support/dependencies.rb:265:in `require_or_load'
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
> active_support/dependencies.rb:425:in `load_missing_constant'
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
> active_support/dependencies.rb:80:in `const_missing'
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
> active_support/dependencies.rb:92:in `const_missing_before_generators'
> /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails_generator/
> lookup.rb:15:in `const_missing'
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
> active_support/inflector.rb:361:in `constantize'
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
> active_support/inflector.rb:360:in `each'
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
> active_support/inflector.rb:360:in `constantize'
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
> active_support/core_ext/string/inflections.rb:162:in `constantize'
> /home/slugs/185492_455ee81_f917/mnt/.gems/gems/hobo-1.0.0/lib/hobo/
> model_controller.rb:61:in `all_controllers'
> /home/slugs/185492_455ee81_f917/mnt/.gems/gems/hobo-1.0.0/lib/hobo/
> model_controller.rb:57:in `each'
> /home/slugs/185492_455ee81_f917/mnt/.gems/gems/hobo-1.0.0/lib/hobo/
> model_controller.rb:57:in `all_controllers'
> /home/slugs/185492_455ee81_f917/mnt/.gems/gems/hobo-1.0.0/lib/hobo/
> model_router.rb:97:in `add_routes_for'
> /home/slugs/185492_455ee81_f917/mnt/.gems/gems/hobo-1.0.0/lib/hobo/
> model_router.rb:83:in `add_routes'
> /home/slugs/185492_455ee81_f917/mnt/.gems/gems/hobo-1.0.0/lib/hobo/
> model_router.rb:83:in `each'
> /home/slugs/185492_455ee81_f917/mnt/.gems/gems/hobo-1.0.0/lib/hobo/
> model_router.rb:83:in `add_routes'
> /home/slugs/185492_455ee81_f917/mnt/.gems/gems/hobo-1.0.0/rails/../lib/
> hobo.rb:73:in `add_routes'
> /disk1/home/slugs/185492_455ee81_f917/mnt/config/routes.rb:6
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/
> action_controller/routing/route_set.rb:226:in `draw'
> /disk1/home/slugs/185492_455ee81_f917/mnt/config/routes.rb:1
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
> active_support/dependencies.rb:147:in
> `load_without_new_constant_marking'
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
> active_support/dependencies.rb:147:in `load'
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/
> action_controller/routing/route_set.rb:286:in `load_routes!'
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/
> action_controller/routing/route_set.rb:286:in `each'
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/
> action_controller/routing/route_set.rb:286:in `load_routes!'
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/
> action_controller/routing/route_set.rb:266:in `reload!'
> /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:
> 537:in `initialize_routing'
> /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:
> 188:in `process'
> /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:
> 113:in `send'
> /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:
> 113:in `run'
> /disk1/home/slugs/185492_455ee81_f917/mnt/config/environment.rb:9
> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> `gem_original_require'
> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> `require'
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
> active_support/dependencies.rb:156:in `require'
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
> active_support/dependencies.rb:521:in `new_constants_in'
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
> active_support/dependencies.rb:156:in `require'
> /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/tasks/misc.rake:4
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in
> `execute'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in
> `execute'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in
> `invoke_with_call_chain'
> /usr/local/lib/ruby/1.8/monitor.rb:242:in `synchronize'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in
> `invoke_with_call_chain'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in
> `invoke_prerequisites'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
> `invoke_prerequisites'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in
> `invoke_with_call_chain'
> /usr/local/lib/ruby/1.8/monitor.rb:242:in `synchronize'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in
> `invoke_with_call_chain'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in
> `invoke'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in
> `invoke_task'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in
> `top_level'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in
> `each'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in
> `top_level'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in
> `standard_exception_handling'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in
> `top_level'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in
> `standard_exception_handling'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
> /usr/local/bin/rake:19:in `load'
> /usr/local/bin/rake:19
> (in /disk1/home/slugs/185492_455ee81_f917/mnt)
> ** Invoke db:migrate (first_time)
> ** Invoke environment (first_time)
> ** Execute environment
>
> So it seems that line 19 of /models/char.rb is causing the troubles.
> Line 19 is: belongs_to :owner, :class_name => "User", :creator =>
> true, :accessible => true
>
> Is anyone able to point me to the right direction? What's wrong?
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Hobo Users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group 
> athttp://groups.google.com/group/hobousers?hl=en.

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to