Skip to content

Conversation

@tilsammans
Copy link

This can be accomplished using vanilla Rake.

This can be accomplished using vanilla Rake.
@tilsammans
Copy link
Author

@rstacruz is this project still alive?

@rstacruz
Copy link
Member

cc @mikong:

I think ENV['to'] here can be ambiguous with other tasks that aren't deploy:

$ mina logs to=production
$ mina console to=production

A better approach might be to define a task like so:

    task :staging do
      set :deploy_to, "/var/www/staging.snipfile.io"
    end

    task :production do
      set :deploy_to, "/var/www/snipfile.io"
    end

So you may:

$ mina production deploy
$ mina staging deploy
$ mina staging restart
$ mina staging logs
$ mina staging console
$ mina staging rake[db:seed]

@seifsallam
Copy link

@rstacruz Just tried what you wrote above and it was amazing, so much easier than Cap/ext. So i was wondering why adding it to Mina documentation, it would be very helpful.

@lucianosousa
Copy link

👍

@flowerett
Copy link

+1 to adding this

@vnovitskyi
Copy link

thank you

@kusakusakusa
Copy link

👍

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.

7 participants