Questions tagged [php-deployer]

A deployment tool written in PHP with support for popular frameworks out of the box.

Filter by
Sorted by
Tagged with
1 vote
1 answer
45 views

Deploying Laravel through Deployer and GitHub Actions always results in Permission denied (publickey,keyboard-interactive)

I have quite a frustrating situation. I am trying to use Deployer to deploy my laravel projects with GitHub Actions and it just keeps kicking me back and giving me a Permission denied (publickey,...
  • 161
1 vote
1 answer
39 views

What means terminal prompts disabled?

I use gitlab since some years. After an update of my mac book, one application fails on deploy with deployer. fatal: could not read Username for 'http://mygitlab.org:22': terminal prompts disabled I ...
  • 635
0 votes
1 answer
275 views

Unable to deploy a Laravel application with deployer

Recently, I have upgraded Deployer from 6.X to 7.X and followed the upgrade guide from Deployer. Since I've made theses changes, I am unable to deploy application on the Gitlab CI. The error come from ...
0 votes
1 answer
131 views

yarn: not found in deployer

I installed the yarn by nvm. root@server:~# which yarn /root/.nvm/versions/node/v19.0.0/bin/yarn It works when I login the machine and use yarn in terminal. root@server:~# yarn -v 1.22.19 But once I ...
  • 1,962
0 votes
0 answers
14 views

deployer:env: php: No such file or directory

I use deployer: https://github.com/deployphp/deployer to deploy my php project, run the dep command in macos bigsur without any problem, but run the dep command in macos monterey will report an error: ...
0 votes
1 answer
733 views

Github action fail when deploy: Your Composer dependencies require a PHP version ">= 7.3.0

I have used a simple github action workflow for over one year to deploy my code to my server. Suddenly it gives me composer errors when i have not touched the composer file. Have not even run composer ...
  • 101
1 vote
1 answer
318 views

deployer Error: Could not read from remote repository

I have a problem with deployer that is driving me crazy! In some of my projects I get the following error message: [Deployer\Exception\RuntimeException (128)] The command "cd /home/www/p123456/...
  • 21
0 votes
0 answers
48 views

Laravel Deployment all routes except / show 404

TLDR I'm deploying a Laravel application to Directadmin with deployer's recipe. Getting 404 on all routes except /. What I've tried Manual Deploy Initially I created the storage link Laravel requires ...
  • 11
1 vote
0 answers
204 views

liip imagine the pictures are not showing

I use liip imagine on symfony 6 and I have a problem with images. I use deployer.php for the deployment of my project and my images are in a shared folder which looks like this: /var/www/shared/public/...
1 vote
1 answer
230 views

Changes only take effect after a few hours when deploying Shopware 6 project

I have a similar setup as described here. The only difference is that I'm building the whole project in my pipeline. This runs without problems and the code is deployed to the server without any ...
  • 29
0 votes
1 answer
1k views

Why is Composer installing an old version when it isn't specified?

When I do: composer require deployer/deployer I get the following output: Info from https://repo.packagist.org: #StandWithUkraine Using version ^4.3 for deployer/deployer ./composer.json has been ...
  • 3,634
0 votes
1 answer
140 views

Should Laravel's "vendor/bin" be in the system's PATH?

I'm trying to follow this series of guides for deploying my Laravel app using the open-source deployer tool. The guide is generally very good, but the linked step is confusing - it says to install the ...
  • 3,634
3 votes
1 answer
1k views

Deploying different branches using Deployer

I am learning to use Deployer to deploy my Laravel application to staging / production environments. The below config works, but it always deploys the same code. Is it possible to set staging to only ...
  • 161
1 vote
2 answers
656 views

PHP Deployer failing on line without errors

I have a PHP Deployer task to recursively change file owner of everything in the deploy path: task('set_owner', function () { run("chown -R someuser:www-data {{deploy_path}}"); }...
0 votes
1 answer
300 views

Deployer 7 distribution use dotenv variables

Problem Using deployer in a Symfony 6 applaction has required me to change from deployer/deployer to deployer/dist (7.0.0-rc.3), with the downside being that I cannot load enviroment variables from my ...
  • 787
2 votes
1 answer
3k views

Laravel 8 undefined error Illuminate\\Support\\Collection::getArrayableItems()

Using laravel v8.7* Using apache server and used deployer to deploy the Laravel application on the server. Having issues once deployed to a server. I get the following error: PHP Fatal error: ...
  • 329
0 votes
0 answers
189 views

Deployer PHP v7 RC3 ssh-keyscan fails and throws Name or service not known

I'm migrating my project from Deployer v6 to Deployer v7. My server has several projects that utilise passwordless deploy keys, when trying to deploy my project I'm getting the following error despite ...
  • 2,503
1 vote
1 answer
1k views

gitlab CI/CD deploy laravel project

I Want to deploy my laravel project through ci/cd gitlab, I have a problem with deploying my project. i am trying to deploy my laravel project to cpanel through gitlab CI. I am using deployer package ...
0 votes
0 answers
57 views

I'm getting 403 Fobidden Error after successfully deploying my laravel app using Deployer

I successfully deployed my laravel app to app.example.com using deployer on windows (my local pc I mean), the app is deployed to a VPS Server running on Linux with a LEMP Stack configuration. There ...
2 votes
0 answers
995 views

Using deployer with github actions to deploy private repository

I'm trying to deploy a PHP Project using github action The connection on the target server works but I'm stuck at the part when deployer tries to clone the repository. I'm storing a private ssh key in ...
2 votes
0 answers
1k views

What is causing a segfault when Opcache file cache is enabled in a symlink deployment?

I'm using PHP deployer which is a symlink based deployment tool which calls opcache:reset after deployment. Recently I'm getting a segfault in my PHP-FPM processes after deployment. This manifests as ...
0 votes
0 answers
231 views

Running any PHP Artisan/Composer commands return an error

I'm trying to Deploy my Laravel application to a staging server when I encountered this error [ErrorException] require(/var/www/html/<app name>/releases/<version number>/vendor/composer/../...
3 votes
1 answer
638 views

Git can't clone project via ssh Deployer

I'm using Deployer to clone a project onto a server, but despite setting up the deploy key, for some reason cloning via SSH is failing: ERROR: Repository not found. fatal: Could not read from remote ...
  • 2,503
0 votes
0 answers
255 views

How to deploy the latest release version by deployer

I using a deployer to deploy my Laravel project. like below <?php namespace Deployer; require 'recipe/laravel.php'; // Project repository set('repository', 'git@mygit.git'); // Shared files/dirs ...
  • 1,962
1 vote
2 answers
508 views

deployer: 'composer install' - command not found

I am using deployer to package a symfony application on the server. During the deploy I also need to run composer install to run important commands like bin/console. Only then the deployment can be ...
-1 votes
1 answer
588 views

How to unlimit PHP Deployer composer memory?

I am running PHP deployer for a magento application from a docker-compose. The apache is inside a container and there is a memory limit for php. I have control on the Dockerfile, if needed. Currently ...
  • 1,088
-1 votes
1 answer
908 views

PHP deployer - task deploy:unlock throws RuntimeException

I use the deployer bundle https://deployer.org/ with an symfony4 receipe to deploy my symfony5 app to an Centos Server from uberspace via SSH. My deploy.php looks like this: <?php namespace ...
  • 1,929
2 votes
1 answer
2k views

PHP Deployer change Composer Version

i use PHP Deployer with bitbucket pipelines my deployment worked fine until composer version 2.0 was released. Now i need to downgrade composer to version 1 but i don't know how to set the version. I ...
  • 1,358
1 vote
1 answer
288 views

Private repo can't read with Git on composer installation on CentOS server

I'm trying to install some private repos via Composer in my Laravel application using deployer, I've created my github SSH alias's and added my keys with ssh-add -k path-to-key and have added them to ...
  • 2,503
1 vote
0 answers
378 views

Using Deployer on Windows to deploye laravel app

i installed "deployer" for laravel app and i configurate it and i followed the documentation exactly like it is , worked on linux but on windows i get an error Permission denied when i try ...
1 vote
1 answer
2k views

Symfony - Gitlab CI/CD with Deployer

I'm trying to set up Gitlab CI/CD on my Symfony project using Deployer but i'm not able to do it. When deployment is executed on my pipeline, i have an Operation timed out error which mean that my ...
1 vote
1 answer
802 views

Deployer PHP not copying files from Laravel's storage folder

I'm using Deployer PHP with laravel and rsync recipes to deploy my Laravel project but for some reason the files in the storage/app folder are not copied from the git branch to the storage folder on ...
2 votes
1 answer
3k views

Error "getsockname failed: Not a socket" on Windows 10

I am successfully connecting to the server via cmd , but I get error after send command of deploy error getsockname failed: Not a socket Running command in cmd from project directory call vendor/bin/...
  • 93
1 vote
0 answers
379 views

Deployer [Error] Call to undefined function Deployer\artisan()

When I try to call the artisan function from within a closure in the deploy.php and I run into this error: [Error] Call to undefined function Deployer\artisan() My deploy.php looks like this: <?...
1 vote
1 answer
1k views

Issues configuring CacheTool & PHP-FPM

I'm trying to use the CacheTool recipe from Deployer. I'm having issues with the configuration of cachetool. Using WHM / cPanel and PHP version is PHP 7.4 (ea-php74). set('cachetool', '/var/cpanel/php-...
  • 300
1 vote
1 answer
299 views

htaccess remove segment from url and redirect to https and www

I am deploying a Craft CMS site to a shared hosting account using Deployer. The latest deployment is accessible from domain.com/current/public My .htaccess file looks like the following, which strips ...
  • 1,098
0 votes
1 answer
957 views

Permission problems with Laravel's storage directory on CentOS 7. Changing permissions and ownship with chmod and chown does not solve it

I figured this out myself while I was revising my question, but I'm going to post my original question anyway with the solution in case it helps anyone else. The solution has nothing to do with ...
  • 936
-1 votes
1 answer
267 views

How do I set up Deployer to sync only specified folders from localhost to production? [closed]

I have a localhost Laravel project I want to deploy with Deployer. Currently I do it manually using an FTP tool and only sync the app, resources folders and seems to work just fine. I want to use ...
  • 1,070
1 vote
1 answer
788 views

How to properly install deployer?

I am trying to install and use deployer so I run this command curl -LO https://deployer.org/deployer.phar to install it. And try to move deployer.phar to /usr/usr/local/bin/dep as the docs instructs ...
1 vote
1 answer
546 views

PHP Deployer: How to get user name from host setup

I am trying to deploy my code via php deployer, but I am facing a syntax issue, which is how can I re-use the host user on task? For instance, I would like to replace USERNAME with barfoo in dynamic ...
  • 318
2 votes
1 answer
550 views

Deployer SSH bash not loading profile files

I’m using Deployer to SSH onto a server and run some scripts for deployment. I don’t know the very internal details about how Deployer is executing ssh. The problem is it only has a fragment of $...
  • 1,906
0 votes
0 answers
122 views

Why can't Deployer runLocally run this variable string replacement command?

Running this in bash in my Homestead box works: symbRefHead=$(git symbolic-ref -q HEAD) && echo $symbRefHead && branch_name="${symbRefHead//refs\/heads\/}" && echo $branch_name ...
  • 21.9k
0 votes
1 answer
807 views

How to log deployments in Deployer?

I'm using Deployer and enjoy it. One thing I haven't figured out how to do yet though is write a log file of my deployments. I'm attempting to append the commit hash and date to revisions.txt: task(...
  • 21.9k
8 votes
1 answer
2k views

How to set release limit while using php-deployer?

I am using PHP deployer 6.6.0 to deploy Laravel based websites. Every time I deploy it creates a new release. Currently, I have more than 10 releases and it's eating up a lot of disk space. I don't ...
  • 113
0 votes
1 answer
506 views

PHP deployer does not use the default php version

I tried to deploy laravel 5.6 using PHP deployer. The site got deployed successfully. But I see the below error while trying to access the website, Parse error: syntax error, unexpected '?', ...
  • 113
0 votes
1 answer
188 views

Deployer How can I build my JS application (Yarn)?

I'm using Deployer and I think I've got everything working, but I now need to CD into my js folder and execute yarn build. This has proven quite tricky since I can't seem to get the path right with ...
  • 601
0 votes
0 answers
129 views

Deployer Laravel failing on migration

So I'm using deployer to deploy my Laravel application, and everything seems to work right up until migrations. It keeps attempting to use the default variables forge@localhost even though I've tried ...
  • 601
0 votes
1 answer
224 views

Ignore packagist.org and specify path for one bundle

I modified a symfony 4 bundle to fix some bug. I now want to deploy my project through https://deployer.org/. So I added this bundle not ignored in the .gitignore so that the folder of the bundle ...
  • 81
-1 votes
1 answer
1k views

PHPDeployer: set variable for local task based on host?

I have deployer running as part of a GitHub Action pipeline. I wanted to have the pipeline run the NPM build for me and copy it up as part of the deploy rather than having deployer using npm dev ...
  • 143
0 votes
1 answer
277 views

Deployer doesn't pick up cached binaries

Deployer: 6.4.6 OS: Ubuntu 18.04 LTS npm: 5.6.0 node: 8.11.4 Hello, when deploying with deployer my npm install takes 157s, but when I tried to recreate that step when ssh'ed (with the same user) it ...
  • 464