-
Notifications
You must be signed in to change notification settings - Fork 492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to refactor (?) a long deploy.rb #145
Comments
Did you make it load before the other tasks? Should work. |
I've gone back to just using a long |
Well you'd just have to require the file that contains the environment task explicitly first. When you do the wildcard require it will be skipped since it was already required (just don't do load since that will reload it, and that's not necessary). |
PS: And as described in docs http://ruby-doc.org/core-1.9.3/Dir.html#method-c-glob the order is platform-dependent, so you are not guaranteed any specific order. |
👍 |
I'd like to split my deploy.rb up into multiple files for maintenance. I've tried the following:
However, if I remove the
:environment
block into a different file, mina tasks fail silently. What should I do instead?The text was updated successfully, but these errors were encountered: