lazy_developer icon indicating copy to clipboard operation
lazy_developer copied to clipboard

Configurable options for deploying to staging envs with regard to rake db:test:prepare

Open jondkinney opened this issue 16 years ago • 1 comments

Hey Brian,

I'm using the latest lazy (1.1.9) in a Rails 2.3.4 app and when I do a "cap deploy:migrations" and deploy to the staging server, lazy tries to prep my test db. I looked in the plugin directory and for the lazy tasks it runs that rake db:test:prepare command as long as your env isn't "production". I think you should consider making that a configurable option without needing to modify the code in the plugin itself. For now I just put "|| RAILS_ENV == "staging"" and it stops it from trying to prep my test db when I deploy with migrations. Just my 2 cents, I'll see if I can work on a patch if you agree with where I'm going on this.

Thanks, -Jon

jondkinney avatar Jan 05 '10 18:01 jondkinney

Should do something with this. I'm not keen on a configuration option. I want lazy to be... lazy. Probably should just change the code so that it only runs those tests in dev mode.

napcs avatar Jan 05 '10 20:01 napcs