Questions tagged [php-deployer]

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

Deployer Features

  • Fast : Deployer is packed with time-saving features and optimisations, best for performance and development.
  • Modular : Create your own deployment script based on our modular blocks called "recipes".
  • Clean code : Deployer has a very clean and well tested code. The repository is watched by many code quality tools, and every pull request is also checked by QA tools.
  • Rollbacks : If something is wrong, a simple rollback to the previous release is possible.
  • Atomic : deploys Prepare codebase, warm cache, do other stuff, and then deploy them with symlinks!
  • Parallel :tasks Deployer can run tasks in parallel, no other extension is required!
  • Consistency: Deployer keeps consistency between servers, even in parallel mode! If one task fails, subsequent tasks will not be executed on all servers.

Website

99 questions
1
vote
1 answer

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 issues. Deployer creates a new folder for the release…
Maxime
  • 29
  • 4
1
vote
2 answers

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}}"); }); after('deploy:failed', 'deploy:unlock'); // Unlock…
Arno van Oordt
  • 2,912
  • 5
  • 33
  • 63
1
vote
1 answer

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 in this project but when i push my commit to…
1
vote
2 answers

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 completed. Unfortunately the deployment fails and…
Goldkarma
  • 11
  • 1
1
vote
1 answer

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 the individual private repos, it seems that the…
Ryan H
  • 2,620
  • 4
  • 37
  • 109
1
vote
0 answers

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 to run this commande vendor/bin/dep deploy i get this…
1
vote
1 answer

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 config is wrong. My gitlab-ci.yml : image:…
as-dev-symfony
  • 353
  • 4
  • 23
1
vote
1 answer

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 the server. The .gitignore is correctly set and…
Arno van Oordt
  • 2,912
  • 5
  • 33
  • 63
1
vote
0 answers

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:
Arno van Oordt
  • 2,912
  • 5
  • 33
  • 63
1
vote
1 answer

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-fpm//sock'); Results in the following…
GlennM
  • 300
  • 1
  • 14
1
vote
1 answer

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 current/public from the url and forces…
Pedro
  • 1,148
  • 4
  • 16
  • 35
1
vote
1 answer

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 but it's not working: Error: mv: cannot stat…
AzafoCossa
  • 874
  • 8
  • 18
1
vote
1 answer

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 way. Not hard code. Can anyone give me a…
what
  • 338
  • 1
  • 6
  • 13
1
vote
1 answer

Deploy with deployer fails on vendors

I try to deploy the Laravel application with deployer. The process fails. Below you will see the responses ✔ Executing task deploy:shared ✔ Executing task deploy:writable ➤ Executing task deploy:vendors ✔ Executing task deploy:failed In Client.php…
Peter
  • 655
  • 1
  • 14
  • 37
1
vote
0 answers

deployer.php having problems with .env-vars in Laravel project

I am just getting started using Deployer and I was quite happy setting it up was so easy and straight forward. But now I ran into some issues when it comes to using .env-vars for the Artisan migration using this script:
Jannes
  • 11
  • 2