Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Kevin Minkol
@johnkevson_gitlab
but this container didn't have ssh tools
Kevin Minkol
@johnkevson_gitlab
Another error, right here
✈︎ Deploying master on ssh.cluster028.hosting.ovh.net
• done on [ssh.cluster028.hosting.ovh.net]
➤ Executing task deploy:prepare
[ssh.cluster028.hosting.ovh.net] > echo $0
[ssh.cluster028.hosting.ovh.net] < Warning: Permanently added 'ssh.cluster028.hosting.ovh.net,54.37.121.233' (ED25519) to the list of known hosts.
Enter passphrase for key '/etc/.ssh/id_rsa':
[ssh.cluster028.hosting.ovh.net] < bash
[ssh.cluster028.hosting.ovh.net] > if [ ! -d ~/www ]; then mkdir -p ~/www; fi
[ssh.cluster028.hosting.ovh.net] < Warning: Permanently added 'ssh.cluster028.hosting.ovh.net,54.37.121.233' (ED25519) to the list of known hosts.
Enter passphrase for key '/etc/.ssh/id_rsa':
it asked me the passphrase
and it fails at the third try
edvordo
@edvordo
Have you generated that ssh key?
Alexander Borisov
@BoShurik

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

edvordo
@edvordo

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 ..

safazi
@safazi
greetings, how would I go about deploying into a host that is on another host, i.e. I have to ssh into a machine, then deploy to a machine on that network?
Owen
@owenfar
Hey everyone. I've recently started using Deployer and I was quite happy how simple it was to set up and everything was so smooth. Something I thought about from the beginning is how does deployer know the credentials to connect to my host server? In the host configuration, I only set the IP and user.. how does it go with validating the connection? I'm asking because now for some reason I'm getting a: "Permission denied (publickey)" error. Not sure what happened.. but how can I point to the public key I have on my local computer? Thanks in advance
Owen
@owenfar
Is it related to ->configFile('~/.ssh/config')?
Owen
@owenfar
I still can't figure this one out. I feel like the documentation is missing some info regarding this. I don't understand if the error is related with connecting to GIT or my server, but dep ssh gives the same error. I would still like to know how deployer gets the permission to connect with server, I can't find this anywhere on the docs. Please if anyone can help, I would appreciate it a lot.
I'm on an EC2 instance, just in-case anyone is wondering :)
Owen
@owenfar
I just had to point to the right pem file using ssh -i... Would have been helpful to have something like this in the docs.
Frederick Henderson
@frederickjh
@safazi To deploy to a host that has a jump host in between, I would highly recommend that you setup the ssh jump in your ~/.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.
Frederick Henderson
@frederickjh
@safazi More information on ssh Jump Hosts.
Elie Makany
@eliemakany_gitlab
Hi all, can i have a link to a ressource to help me deploye a Symfony 5 application using deployer ? My application user migrations, webpack encore, ... Thanks for you help.
Tim
@timkley
Hi everyone, are the releases down? https://deployer.org/releases/v6.8.0/deployer.phar is not working anymore.
In fact, all inks on https://deployer.org/download/ aren't working anymore
Otto Szika
@ottoszika
Hi @timkley, it is down for me also. 403 :|
Cyril Junior
@cyrilselasi
Same, this broke our CI. Any idea what happened?
Anton Medvedev
@antonmedv
Travis bot will no longer working
No travis-ci tests!
Tarjei Huse
@tarjei_twitter
Good morning. Any plans for a new version soon?
Salvatore Capritta
@scapritta
Hi everyone. Managing differents projects on different php versions. IS there any stable solution or version to use Deployer with old 5.6 or 7.0 projects?
Thanks everyone
Salvatore Capritta
@scapritta
ok, installing it via composer is auto-detecting. looks good ;)
Tom
@Lambik
hello, i too have an issue with deploy keys on github
i created one locally, then uploaded it to my server, and gave it access to my github private repo, but I probably need to do some more configuration work, because even when manually 'git clone'ing, I get an unauthorized
can one have multiple deployment keys on a server for github, and do they have to be created on the server itself?
Tom
@Lambik
resava
@resava
try to deploy on win server with error /c: /c: Is a directory. Someone with same expirience?
Ard2p
@Ard2p

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"

the server always sees the earliest version of the remote version
edvordo
@edvordo
I had the same problem, never managed to figure out what the problem was .. had to switch to just 1 kept version on the server ..
Ard2p
@Ard2p
I found what the problem is, OPcache
image.png
opcache_reset();
edvordo
@edvordo
I came across opcache ,tried the opcache_reset(), didn't help unfortunatelly
Paul Kamma
@X-Tender
Hi there, I have a gitlabCI task where I want to set a another deplyo file but no mater what I try he always use the default deploy.php file
  • vendor/bin/dep deploy ${CI_ENVIRONMENT_NAME} -f undo.php --tag=$CI_COMMIT_REF_NAME .. also tried --file=undo.php
image.png
Also got this errors :/
hershkoy
@hershkoy
I asked on stackoverflow a question about an issue that I have with deployer. If anyone has an idea how to fix, I would appreciate some help:
https://stackoverflow.com/questions/65287915/how-to-unlimit-php-deployer-composer-memory
edvordo
@edvordo
@X-Tender for the custom file I'd try debugging this portion of the code https://github.com/deployphp/deployer/blob/master/bin/dep#L38 .. tbh I'm not sure how it works without trying to run it myself, but I don't have a project with the lastest deployer on hand, so can't test myself ..

@hershkoy change this

set('composer', 'php -d memory_limit=-1  /usr/local/bin/composer');

to this

set('bin/composer', 'php -d memory_limit=-1  /usr/local/bin/composer');
hershkoy
@hershkoy
@edvordo It worked, Awesome! Do you want to answer in stackoverflow so it will be preserved for future generations?
edvordo
@edvordo
sure, why not :)
hershkoy
@hershkoy
I have another issue, btw:
In Process.php line 1203:
                                                                                                                                                                            [Symfony\Component\Process\Exception\ProcessTimedOutException]
  The process "ssh -A -o ControlMaster=auto -o ControlPersist=60 -o ControlPath=/home/ubuntu/.ssh/deployer_root@123.456.234.123:2222 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@123.456.234.123  'bash -s; printf "[exit_code:%s]" $?;'" exceeded the timeout of 300 seconds.
Not sure if it is related to deployer or composer or ssh
I am check setting COMPOSER_PROCESS_TIMEOUT=600