deployer icon indicating copy to clipboard operation
deployer copied to clipboard

Disable branch selection for host

Open jiexaspb opened this issue 4 years ago • 3 comments

I have two hosts configured, one for production and one for testing:

host('test.mysite.com')
    ->set('remote_user', 'test')
    ->set('deploy_path', '/var/sites/test.mysite.com');

host('mysite.com')
    ->set('remote_user', 'production')
    ->set('deploy_path', '/var/sites/mysite.com');

When I need to deploy another branch to the test branch, I do this

dep deploy --branch newfeature

But I need to forbid choosing a branch for production, so as not to accidentally send test code there How can I do that?

jiexaspb avatar Nov 03 '22 06:11 jiexaspb

Set branch on prod to master.

antonmedv avatar Nov 03 '22 06:11 antonmedv

@antonmedv I didn't find how to do it in the documentation.

jiexaspb avatar Nov 03 '22 09:11 jiexaspb

host('test.mysite.com') ->set('branch', 'master')

antonmedv avatar Nov 03 '22 10:11 antonmedv