I''ve had a few problems with my site working perfectly in development then in production not doing what it''s supposed to or having errors. I''ve tried to find information about why these things could happen but haven''t had any luck. Does anybody know anything about why a site would work one way in development then incorrectly (or not at all) in production. Any ideas or links to where I can read more about this would be great. Thanks -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
A number of things need to change when an app goes into production. I assume you''ve adjusted the environment.rb from development to production, made sure your routes.rb file is still correct, adjuested your database.yml file from development to production (these files are all in the Config folder), as well as removed the index.html in the Public folder and dropped your CSS file, assuming you have one, in your Stylesheets folder in the Public folder. At least that''s where I would look to see if anything is off. On Jun 4, 1:41 pm, "Amanda .." <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> I''ve had a few problems with my site working perfectly in development > then in production not doing what it''s supposed to or having errors. > I''ve tried to find information about why these things could happen but > haven''t had any luck. Does anybody know anything about why a site would > work one way in development then incorrectly (or not at all) in > production. Any ideas or links to where I can read more about this > would be great. > > Thanks > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Amanda .. wrote:> I''ve had a few problems with my site working perfectly in development > then in production not doing what it''s supposed to or having errors. > I''ve tried to find information about why these things could happen but > haven''t had any luck. Does anybody know anything about why a site would > work one way in development then incorrectly (or not at all) in > production. Any ideas or links to where I can read more about this > would be great.How well does it work in test mode? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Ramon Miguel M. Tayag
2008-Jun-04 19:07 UTC
Re: Why code works in development and not production
If you have all the gems and configuration set, most of the time it''s how Rails doesn''t reload stuff like it does in development. Look at your config/environments/development.rb and play around with those settings to make it look like production. Then, slowly change em back to how they were in development and see what works and doesn''t. On Thu, Jun 5, 2008 at 2:41 AM, Amanda .. <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > I''ve had a few problems with my site working perfectly in development > then in production not doing what it''s supposed to or having errors. > I''ve tried to find information about why these things could happen but > haven''t had any luck. Does anybody know anything about why a site would > work one way in development then incorrectly (or not at all) in > production. Any ideas or links to where I can read more about this > would be great. > > Thanks > -- > Posted via http://www.ruby-forum.com/. > > > >-- Ramon Tayag --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Phlip wrote:> How well does it work in test mode?... I don''t know how to get it into test mode :( -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---