Quantcast
Viewing latest article 5
Browse Latest Browse All 7

EngineYard: Using the Current Deployed Branch

Need access to the deployed branch on EngineYard? Unfortunately, the only way that they seem to have made available is through a deploy hook. More unfortunately, this is not well documented so let’s rectify that.

In any deploy hook, simply add the input_ref variable. For example, if you wanted to add the branch name as an environment variable for your app (if you’re running unicorn)

run "echo 'export BRANCH=#{input_ref}' >> #{shared_path}/config/env.custom"

Viewing latest article 5
Browse Latest Browse All 7

Trending Articles