Ruby on Rails
Thursday, July 2, 2015
Don't believe you can use preload_app! with Rails 2, by 1.87
-- Comment that out, and also the section about the worker.on_boot as I am fairly sure that won't work either
On Tuesday, 30 June 2015 10:07:43 UTC+1, Rails Goa wrote:
On Tuesday, 30 June 2015 10:07:43 UTC+1, Rails Goa wrote:
This is been driving me nuts for the last week.The requirement: a Friend has a complete ruby rails app currently (was) running on heroku. It's dead now as they don't support the bamboo stack anymore.
So he's asked me to help him take it off heroku (ok done that got all the code and db and everything).... and he wants to move it to a new / cloud server.
So ok. I've set-up an Ubuntu 14.x LTS Server for him and got the code oj to that. That's done and fine.But it just won';t run. Compiles, etc. But whatever I say or do it won't run. I done it all:* Pointed to a local DB. Postgres - set-up and working on local.* Moved DB from heroku to local with all data. Fine.* Compiled it - bundle install.* Yet when i run it... with ==> foreman start13:54:36 web.1 | started with pid 1221213:54:37 web.1 | I, [2015-06-30T13:54:37.799228 #12212] INFO -- : listening on addr=0.0.0.0:5000 fd=1013:54:37 web.1 | I, [2015-06-30T13:54:37.799328 #12212] INFO -- : worker=0 spawning...13:54:37 web.1 | I, [2015-06-30T13:54:37.800127 #12212] INFO -- : master process ready13:54:37 web.1 | I, [2015-06-30T13:54:37.800917 #12213] INFO -- : worker=0 spawned pid=1221313:54:37 web.1 | I, [2015-06-30T13:54:37.801238 #12213] INFO -- : Refreshing Gem list13:54:37 web.1 | DEPRECATION WARNING: require "activerecord" is deprecated and will be removed in Rails 3. Use require "active_record" instead. (called from /home/online/kacstbook-engage/vendor/bundle/ruby/1.8/gems/ activerecord-2.3.15/lib/ activerecord.rb:2) ...... AND THEN .......tialized constant DEFAULT_HOST13:56:09 web.1 | #<NoMethodError: undefined method `application' for Rails:Module>13:56:09 web.1 | E, [2015-06-30T13:56:09.106145 #12225] ERROR -- : reaped #<Process::Status: pid=12235,exited(1)> worker=013:56:09 web.1 | I, [2015-06-30T13:56:09.106294 #12225] INFO -- : worker=0 spawning...13:56:09 web.1 | I, [2015-06-30T13:56:09.107351 #12239] INFO -- : worker=0 spawned pid=1223913:56:09 web.1 | I, [2015-06-30T13:56:09.107525 #12239] INFO -- : Refreshing Gem list13:56:09 web.1 | DEPRECATION WARNING: require "activerecord" is deprecated and will be removed in Rails 3. Use require "active_record" instead. (called from /home/online/kacstbook-engage/vendor/bundle/ruby/1.8/gems/ activerecord-2.3.15/lib/ activerecord.rb:2) 13:56:12 web.1 | /home/online/kacstbook-engage/config/initializers/paperclip. rb:6: warning: already initialized constant DEFAULT_HOST 13:56:12 web.1 | #<NoMethodError: undefined method `application' for Rails:Module>13:56:12 web.1 | E, [2015-06-30T13:56:12.745513 #12225] ERROR -- : reaped #<Process::Status: pid=12239,exited(1)> worker=013:56:12 web.1 | I, [2015-06-30T13:56:12.745670 #12225] INFO -- : worker=0 spawning...13:56:12 web.1 | I, [2015-06-30T13:56:12.746711 #12243] INFO -- : worker=0 spawned pid=1224313:56:12 web.1 | I, [2015-06-30T13:56:12.746847 #12243] INFO -- : Refreshing Gem list13:56:12 web.1 | DEPRECATION WARNING: require "activerecord" is deprecated and will be removed in Rails 3. Use require "active_record" instead. (called from /home/online/kacstbook-engage/vendor/bundle/ruby/1.8/gems/ activerecord-2.3.15/lib/ activerecord.rb:2) 13:56:15 web.1 | /home/online/kacstbook-engage/config/initializers/paperclip. rb:6: warning: already initialized constant DEFAULT_HOST 13:56:16 web.1 | #<NoMethodError: undefined method `application' for Rails:Module>13:56:16 web.1 | E, [2015-06-30T13:56:16.003923 #12225] ERROR -- : reaped #<Process::Status: pid=12243,exited(1)> worker=013:56:16 web.1 | I, [2015-06-30T13:56:16.004079 #12225] INFO -- : worker=0 spawning...13:56:16 web.1 | I, [2015-06-30T13:56:16.005235 #12247] INFO -- : worker=0 spawned pid=1224713:56:16 web.1 | I, [2015-06-30T13:56:16.005557 #12247] INFO -- : Refreshing Gem list13:56:16 web.1 | DEPRECATION WARNING: require "activerecord" is deprecated and will be removed in Rails 3. Use require "active_record" instead. (called from /home/online/kacstbook-engage/vendor/bundle/ruby/1.8/gems/ activerecord-2.3.15/lib/ activerecord.rb:2) 13:56:19 web.1 | /home/online/kacstbook-engage/config/initializers/paperclip. rb:6: warning: already initialized constant DEFAULT_HOST 13:56:19 web.1 | #<NoMethodError: undefined method `application' for Rails:Module>13:56:19 web.1 | E, [2015-06-30T13:56:19.368604 #12225] ERROR -- : reaped #<Process::Status: pid=12247,exited(1)> worker=0See the ==> <NoMethodError: undefined method `application' for Rails:Module>Any suggestions. I'm at my wits end. tried everything...... And I just can't see anything in port 5000!Thanx.Goan.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/d39b8d9e-2d59-4b3f-8388-3861eaaf0877%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment