Skip to content
This repository has been archived by the owner on Nov 1, 2017. It is now read-only.

only load guard/jasmine rake tasks in dev/test environments #96

Merged
merged 2 commits into from
Aug 15, 2013

Conversation

themgt
Copy link
Contributor

@themgt themgt commented Aug 10, 2013

This is to fix problems w/ e.g. running assets:precompile/db:migrate from a production environment

@bkeepers
Copy link
Contributor

Sometimes RACK_ENV won't be set (like when just running rake). Might I suggest just wrapping the task in a begin/end block and rescuing LoadError?

@themgt
Copy link
Contributor Author

themgt commented Aug 15, 2013

sure, updated the patch

bkeepers added a commit that referenced this pull request Aug 15, 2013
only load guard/jasmine rake tasks in dev/test environments
@bkeepers bkeepers merged commit b5e0027 into github:master Aug 15, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants