Skip to content

Make rails console task dependent on the environment#220

Merged
d4be4st merged 1 commit intomina-deploy:masterfrom
lucapette:add_env_to_console
Jan 23, 2015
Merged

Make rails console task dependent on the environment#220
d4be4st merged 1 commit intomina-deploy:masterfrom
lucapette:add_env_to_console

Conversation

@lucapette
Copy link
Copy Markdown
Contributor

I'm not sure this is the right approach to solve the issue I run into it. Before executing the console task I need to load chruby (I guess using rvm or rbenv would present similar use case) and I've added the following to my config/deploy.rb:

task :console => :environment do
end

That looks like an ugly workaround to me. Is the suggested code a good approach or is there another way to solve this problem I'm missing?

thank you for working on this project.

d4be4st added a commit that referenced this pull request Jan 23, 2015
Make rails console task dependent on the environment
@d4be4st d4be4st merged commit 37a9f51 into mina-deploy:master Jan 23, 2015
@d4be4st
Copy link
Copy Markdown
Member

d4be4st commented Jan 23, 2015

I see no problem with this, merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants