Skip to content
This repository was archived by the owner on May 5, 2022. It is now read-only.
This repository was archived by the owner on May 5, 2022. It is now read-only.

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

@jondkinney

Description

@jondkinney

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions