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
9
votes
4 answers

How to tell Deployer to use different PHP version once ssh'ed to my shared hosting?

I'm experimenting with Deployer to deploy Laravel application into shared hosting (using laravel recipe) from my local ~/Code/project_foo. The point is that when I'm connected to my shared hosting server via ssh, then default php -v version is…
Matt Komarnicki
  • 5,198
  • 7
  • 40
  • 92
9
votes
1 answer

deployer.org how to change releases' folder's name

After I deploy by command to my server: bin/dep deploy In "releases" folder I have folders named liked 1, 2, 3, ... How can I change it to timestamp, so after deploy command I'll get something like this 20160425120500 instead of 1 bin/dep…
whitesiroi
  • 2,725
  • 4
  • 30
  • 64
8
votes
1 answer

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 want to keep more than the last 3 releases and need…
surendar
  • 113
  • 7
5
votes
1 answer

Reloading php-fpm after deploy via php-deployer without password

What I'm trying to achieve is, to reload php7.2-fpm service via php-deployer. According to php-deployer's documentation, it can be done like the code below: task('reload:php-fpm', function () { run('sudo /usr/sbin/service php7-fpm…
Siamak Motlagh
  • 5,028
  • 7
  • 41
  • 65
5
votes
3 answers

How to use Deployer with Docker (Laradock)

I created a fresh Digital Ocean server with Docker on it (using Laradock) and got my Laravel website working well. Now I want to automate my deployments using Deployer. I think my only problem is that I can't get Deployer to run docker exec -it…
Ryan
  • 22,332
  • 31
  • 176
  • 357
4
votes
2 answers

Deployer: Deploy from local machine without repository

So I am trying to use deployer to deploy my local files to a server. However I am not sure how deployer exactly works, because it seems like it needs a GIT repository - which I do not want to use. In the documentation I can't really find much…
Syllz
  • 290
  • 6
  • 22
4
votes
1 answer

How to include part of PHAR in PhpStorm Include path

I'm using PhpStorm and Deployer so I included deployer.phar in PHP Include paths to have auto-completion in deploy.php file. After including the whole deployer.phar PhpStorm complains about duplicate class definition - one coming from my app vendor…
Furgas
  • 2,729
  • 1
  • 18
  • 27
4
votes
1 answer

Warning: Identity file /home/user/.ssh/id_rsa not accessible: No such file or directory

I'm using Deployer for deploying my code to multiple servers. Today I got this error after starting a deployment: [Deployer\Exception\RuntimeException (-1)] The command "if hash command…
Pascal
  • 305
  • 2
  • 4
  • 15
4
votes
2 answers

Deployer - Fatal error: Call to undefined function server()

Deployer version 4.1.0 When running dep deploy test the following error is reported: PHP Fatal error: Call to undefined function server() server ftn is defined as follows in config file: // Configure servers server('test', 'test.server.com') …
mcv
  • 1,380
  • 3
  • 16
  • 41
3
votes
1 answer

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 deploy the develop branch, and set production to…
CodeSauce
  • 255
  • 3
  • 19
  • 39
3
votes
1 answer

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 repository. Please make sure you have the correct…
Ryan H
  • 2,620
  • 4
  • 37
  • 109
3
votes
1 answer

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/dep deploy st1 Deployer version: 6.8.0 PHP…
LIGGTH
  • 123
  • 2
  • 8
3
votes
2 answers

SVN support for php Deployer

I am unable to find the documentation on how to set it up with SVN. Am I missing something? I have tried in my deploy.php file: require 'recipe/common.php'; server('ec2', 'server') ->user('user') ->pemFile('key.pem') ->env('deploy_path',…
Adam
  • 3,415
  • 4
  • 30
  • 49
2
votes
2 answers

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/html/myproject/beta && (/usr/local/bin/git clone -b…
Sven K.
  • 31
  • 2
2
votes
1 answer

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: Uncaught Error: Call to undefined method…
Jojo
  • 329
  • 4
  • 7
1
2 3 4 5 6 7