Why code works in development and not production

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

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.

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?

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.

Phlip wrote:

How well does it work in test mode?

... I don't know how to get it into test mode :frowning: