Greg Hauptmann
2006-Jul-25 09:59 UTC
[Rails] Can I use Production mode but with Dev type characteristics?
Hi, I have a local development environment and remote production environment, however I am really just learning/playing, hence I would like to be able to define these environments separately in the config files, however.... I would like my production environment to really act in a development mode fashion at the moment (i.e. sense updates I make without any need to restart things etc). Is this possible? i.e. I guess I am assuming that the environment setting in environment.rb of PRODUCTION both (a) points to the prod database settings but also (b) implies the production characteristics(?) Thanks -- Posted via http://www.ruby-forum.com/.
Matthew Palmer
2006-Jul-25 10:38 UTC
[Rails] Re: Can I use Production mode but with Dev type characteristics?
On Tue, Jul 25, 2006 at 11:59:44AM +0200, Greg Hauptmann wrote:> I have a local development environment and remote production > environment, however I am really just learning/playing, hence I would > like to be able to define these environments separately in the config > files, however.... > > I would like my production environment to really act in a development > mode fashion at the moment (i.e. sense updates I make without any need > to restart things etc).You can always duplicate the various configuration parameters you want out of config/environments/development.rb into .../production.rb. You could also create a new environment, maybe call it "pseudoprod", which has the desired mix of settings -- just create a new stanza is config/database.yml, and a new file in config/environments. You can then leave your development and production environments alone (which is good from a principle-of-least-surprise perspective). - Matt
Possibly Parallel Threads
- create production tables? use "rake db:migrate"?
- RadRails config? Getting blank project only created?
- Dreamhost working deploy.rb? Can anyone post/send me a copy?
- Cheap Hosting Options? (for Ruby on Rails) Suggestions?
- help with "rake db:migrate" error please?