Skip to content
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

Added documentation on multiple stages. #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Added documentation on multiple stages. #1

wants to merge 1 commit into from

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.

None yet

7 participants