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

Laravel application not updated after deploy

We have several Laravel applications on the same server. To deploy, i use deployer with the same deploy.php One application remains longtime in the old status, even i execute the commands sudo service php7.1-fpm restartand sudo service nginx…
Peter
  • 655
  • 1
  • 14
  • 37
1
vote
0 answers

Symfony ProcessTimedOutException when running gulp --production

When i run my deploy file on my server. I get time out error exception. I increase my composer process-timeout ("process-timeout":600). Also, i added timeout in deploy.php Here deploy.php: task('gulp', function(){ cd('release'); run('gulp…
1
vote
1 answer

Add Deployer deploy.php recipe to .gitignore?

Should the Deployer recipe (config) file deploy.php be added to .gitignore? I could not find any information on this. What is best practice?
gummiost
  • 654
  • 7
  • 15
1
vote
1 answer

Deployer 2 applications one host

Given: Single-page frontend application(angularJS) & API backend service(Symfony3) One host for one stage which hosts both the front- & the backend Deployer version 6.0.3 The question is: how to be able to deploy both of them using the following…
Den Rolya
  • 29
  • 5
1
vote
1 answer

php deploy build folder only

I am currently using Grunt with grunt-ssh-deploy to deploy the build/ folder after the build is done via an archive, like this: 'ssh-deploy-release': { options: { localPath: 'build', currentReleaseLink: 'current', …
Michel
  • 950
  • 14
  • 23
1
vote
0 answers

Deployer to deploy on file edit

I have php deployer set up which will deploy all my files to staging server whenever I run dep deploy:staging. Now I want to know if there is a way to run that deployer command whenever the file got changes. I have tried using Facebook's watchman,…
zaw
  • 684
  • 1
  • 11
  • 30
1
vote
1 answer

Deployer docs are incorrect. How do I properly reconfigure an existing task?

The PHP Deployer docs on this page are wrong. In the section labeled "Reconfigure" it says: You can reconfigure tasks, e.g. provided by 3rd part recipes by retrieving them by name: task('notify')->onlyOn([ 'firstserver', …
fronzee
  • 1,668
  • 2
  • 21
  • 32
1
vote
1 answer

Deployer v4.2.1 fatal error "undefined function" with officially endorsed 3rd party recipes out of the box

After a basic install of PHP deployer v4.2.1 I find that it does not work (see below) with the officially endorsed 3rd party recipes out of the box. I am fairly new to Deployer. Here is what I did. I installed PHP deployer v4.2.1 with: composer…
fronzee
  • 1,668
  • 2
  • 21
  • 32
1
vote
3 answers

How to install and run Deployer on Windows

I want to install Deployer on Windows. I have followed below steps: Run command in cmd: D:\composer require deployer/deployer:~3.0 Then D:\php vendor/bin/dep When I run above command it shows me below thing: dir=$(d=${0%[/\]*}; cd "$d"; cd…
okconfused
  • 3,567
  • 4
  • 25
  • 38
0
votes
1 answer

PHP Composer cache in Azure DevOps Container Job

I have the following pipeline in Azure DevOps for building and deploying a PHP web app. The Azure agent spins up a container based on the image (mycustomimage/pipeline-build-php8) and builds and deploys everything in the container. How can I cache…
0
votes
1 answer

How to define multiple hosts (web servers) in hosts.yml inventory for PHP Deployer

I have multiple hosts (web servers) per environment. How do I define this in hosts.yml? The following returns an array error. hosts: uat: hostname: - 10.20.30.50 remote_user: someuser port: 22 …
Confounder
  • 469
  • 1
  • 8
  • 23
0
votes
0 answers

Deployer is not uploading new files in Symfony 6 application

I am deploying an application to a remote server using Deployer. I have updated the code in the local environment and when I deploy it the new files do not appear on the remote server. For example, I've created a HomeController.php file, but it…
A. Cedano
  • 557
  • 7
  • 39
0
votes
0 answers

Deployer is failing to create vendors, when I try to deploy a Symfony 6 app on shared hosting

I have created an application based on symfony, and I am trying to deploy it on shared hosting. Almost all tasks happen successfully, but on vendors it fails. This is the log of tasks: task deploy:info [im] info deploying HEAD task deploy:setup task…
A. Cedano
  • 557
  • 7
  • 39
0
votes
1 answer

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 command deploy:update_code [dev-env] error in…
dolor3sh4ze
  • 925
  • 1
  • 7
  • 25
0
votes
1 answer

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 try to run yarn in deployer…
DengSihan
  • 2,119
  • 1
  • 13
  • 40