Skip to content

deploy current branch error or am I missing something? #69

@stefanosc

Description

@stefanosc

I just had a look at the latest commit
341f9f2

And followed the various conversations around this, including pull #53

As part of my deploy task I tried various options:

Paratrooper::Deploy.new("myapp-staging", tag: 'staging', branch: "HEAD")
Paratrooper::Deploy.new("myapp-staging", tag: 'staging', branch: :head)

as described in lib/paratrooper/deploy.rb

And I get this:

Fetching repository, done.
error: src refspec refs/heads/HEAD does not match any.
error: failed to push some refs to 'git@heroku.com:myapp-staging.git'

If I don't pass any :branch value to the Deploy instance then it only deploys the master branch.

is there a way to simply deploy the current branch to staging without having to manually edit the rake task with the branch name?

Thank you very much

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions