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

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: env: php: No such file or directory. My php is…
Qiang Miao
  • 51
  • 4
0
votes
1 answer

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 update. The new error message: PHP Fatal error:…
robrob
  • 111
  • 1
  • 7
0
votes
1 answer

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 updated Running composer update…
Hashim Aziz
  • 4,074
  • 5
  • 38
  • 68
0
votes
1 answer

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 deployer package using something like: composer…
Hashim Aziz
  • 4,074
  • 5
  • 38
  • 68
0
votes
1 answer

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 .env anymore with the way I used to do…
YTZ
  • 876
  • 11
  • 26
0
votes
0 answers

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 my SSH config file on the server being correct…
Ryan H
  • 2,620
  • 4
  • 37
  • 109
0
votes
0 answers

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 were no errors in deployment as shown in the image…
0
votes
0 answers

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//releases//vendor/composer/../../App/Helpers/DateHelper.php): failed to open stream: No…
0
votes
0 answers

How to deploy the latest release version by deployer

I using a deployer to deploy my Laravel project. like below
DengSihan
  • 2,119
  • 1
  • 13
  • 40
0
votes
1 answer

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 symbolic links or Deployer, but I'm going to leave my…
Michael
  • 1,075
  • 1
  • 10
  • 24
0
votes
0 answers

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 So why does running it via runLocally fail? $options = ['tty' => true]; …
Ryan
  • 22,332
  • 31
  • 176
  • 357
0
votes
1 answer

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('log_the_deployment', function ()…
Ryan
  • 22,332
  • 31
  • 176
  • 357
0
votes
1 answer

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 '?', expecting variable (T_VARIABLE) in…
surendar
  • 113
  • 7
0
votes
1 answer

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 deployer. For example my task is…
Borassign
  • 621
  • 2
  • 7
  • 16
0
votes
0 answers

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 both copying a .env file into the folder and…
Borassign
  • 621
  • 2
  • 7
  • 16