Hey all. I am investigating converting to Deployer from Capistrano and came across a requirement I couldn't quite figure out.
I get that I can do this (which is awesome):
host('prod[01:05].example.org')
->stage('production')
But is there any way for me to do something like this:
host('production')
->hostname('prod[01:05].example.org')
It doesn't seem to work.
6.x
branch. If I understand it correctly master
will be v7, which currently includes breaking changes.
www-data
group, so that he can also run queues for example. Also possibly not a bad idea to have a user per application running on your server.Hello, I get some issue when i launch php vendor/bin/dep deploy -vvv. I have this issue : ✈︎ Deploying master on rl-location.com
• done on [rl-location.com]
➤ Executing task deploy:prepare
[rl-location.com] > echo $0
[rl-location.com] < ssh multiplexing initialization
[rl-location.com] < sh: ssh: not found
➤ Executing task deploy:failed
• done on [rl-location.com]
✔ Ok [4ms]
➤ Executing task deploy:unlock
[rl-location.com] > rm -f ~/www/.dep/deploy.lock
[rl-location.com] < ssh multiplexing initialization
[rl-location.com] < sh: ssh: not found
In Client.php line 103:
[Deployer\Exception\RuntimeException (-1)]
The command "rm -f ~/www/.dep/deploy.lock" failed.
Exit Code: -1 (Unknown error)
Hello! How can I achieve something like this?
if (input()->hasArgument('stage') && input()->getArgument('stage') === STAGE_STAGING) {
set('repository', 'repository1');
} else {
set('repository', 'repository2');
}
Now I got Uncaught Error: Call to a member function getInput() on boolean
I'd add this on the host definition
host('stagin.example.com')
->stage(STAGE_STAGING)
->set('repository', 'repository1');
host('prod.example.com')
->stage(STAGE_PRODUCTION)
->set('repository', 'repository2');
unless, of course, you are deploying to the same host, which I don't know why you would ..
~/.ssh/config
file and use ssh keys. Once this has been done, so that from the command line you can type ssh Host
and be sitting at a command prompt of the machine to deploy to, you should be ready to go. Note in ~/.ssh/config
on the Host line you can specify one or more names that you can use to ssh in. Host is different than HostName in ~/.ssh/config
. For the jump host setup look at the ProxyJump and ProxyCommand lines. Depending on the versions of Open ssh you may or may not be able to use ProxyJump. If not use ProxyCommand and netcat
. Something like this: ProxyCommand ssh hostnameoripaddress netcat -w 120 %h %p
.
Hello everyone, help solve the problem.
My server doesn't update paths for a long time
"\/var\/www\/user\/data\/www\/site\/backend\/releases\/11\/app\/Http\/Controllers"
"\/var\/www\/user\/data\/www\/site\/backend\/current" => "\/var\/www\/user\/data\/www\/site\/backend\/releases\/16\/app\/Http\/Controllers"