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
2
votes
0 answers

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 the github secret in order to access the server…
aschaeffer
  • 31
  • 4
2
votes
0 answers

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 segfault entires in the PHP logs/memory exhausted…
jamieburchell
  • 761
  • 1
  • 5
  • 18
2
votes
1 answer

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 know that i can set the PHP Version like…
lvollmer
  • 1,418
  • 2
  • 13
  • 32
2
votes
1 answer

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 $PATH which means the binary required for deployment…
Jan Richter
  • 1,976
  • 4
  • 29
  • 49
2
votes
2 answers

How in php deployer set host details from .env instead of ~/.ssh/config

I'm looking how I can set up host user and pass from env this don't work - need string not function host('51.38.98.87') ->stage('production') ->user( function(){return getenv('PRODUCTION_USER'); ) ->pass( function(){return…
Developer
  • 2,731
  • 2
  • 41
  • 71
2
votes
1 answer

Rollback doctrine:migrations with Deployer

I have a Symfony 3 application where I use deployer to deploy my application. Also I am using Doctrine Migrations to migrate my database. I use the symfony3 recipe. When I run dep deploy, deployer migrates my database. However, when I run dep…
2
votes
2 answers

NGINX Caching Symlinked Web Site Location

I have this weird issue that was not happening before. I am running a Ubuntu Box on Digital Ocean that uses NGINX and PHP-FPM. I also use PHP Deployer to deploy code between Stage and Prod. Deployer uses symlinks to tell the server where the files…
AKKAweb
  • 3,795
  • 4
  • 33
  • 64
2
votes
1 answer

How to use php deployer?

I want to deploy a PHP project with Deployer. I have this code: task('deploy',…
Al Kativo
  • 135
  • 2
  • 9
2
votes
1 answer

Symfony cache warmup gives annotation exception

I'm using the deployer.org tool, with the default symfony3 recipe. Cache warmup task on prod environment gives the following error: [RuntimeException] [Doctrine\Common\Annotations\AnnotationException] [Semantical Error] The annotation …
Joost
  • 95
  • 1
  • 9
2
votes
1 answer

How to automate the deployment of new versions of a PHP script running in the background without downtime?

I have a AMQP consumer (a RabbitMQ consumer) written in PHP always active running in the background. This script is run in multiple nodes and 12 times per node: 12 unix background processes running: php -f consumer.php &. If a new version of the…
2
votes
1 answer

Redirected too many times error after Yii2 application deploy

I am trying to deploy my Yii2 application using Deployer My server is Ubuntu server 16.4.10 LTS, I have configured everything right, When I simply copy the project to server using filezilla everything works fine but when I deploy it with deployer I…
TheDevWay
  • 1,363
  • 1
  • 16
  • 45
2
votes
1 answer

Symfony3 project deployment to prod server using Deployer.org

I'm trying to deploy my symfony3 project to production server Using deployer.ord. I've been through all around deployer.org and not sure what is going wrong. Below is my deploy.php file
Sky21.86
  • 627
  • 2
  • 9
  • 26
1
vote
1 answer

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,keyboard-interactive) error. On the server I want to…
CodeSauce
  • 255
  • 3
  • 19
  • 39
1
vote
1 answer

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 use the same gitlab server for all projects. The…
Peter
  • 655
  • 1
  • 14
  • 37
1
vote
0 answers

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/images. the image url looks like…
CHRISCOM
  • 29
  • 5