phillip rhodes
2007-Feb-07 04:06 UTC
why does script/server production use my development db?
I have a rails app (Radiant CMS) that I installed. I setup the db for the production instance of the database (script/setup-database production) I started the application as "script/server production" but the application errors out with a table not found error. The application was pointed to the development db instance. I thought that "script/server production" would use the production db, and "script/server development" would run against the development db instance and so on. Anyway, I got around this by setting up the development instance of the db (script/setup-database development), but I am confused why running "script/server production" would use a development environment. Thanks for answering a beginners question. Phillip --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Dan Manges
2007-Feb-07 15:00 UTC
Re: why does script/server production use my development db?
On Feb 6, 11:06 pm, phillip rhodes <p...-URWvmY1Kg72WkzVdRvz7FA@public.gmane.org> wrote:> I started the application as "script/server production" but the > application errors out with a table not found error. The application > was pointed to the development db instance. I thought that > "script/server production" would use the production db, and > "script/server development" would run against the development db > instance and so on.To set the environment use: script/server -e production Dan Manges --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---