Open
Labels
Description
I get this error :
Error: Command failed with ENOENT: deployer.phar deploy prod -f .github/deploy.php
spawnSync deployer.phar ENOENT
More verbose error message would be welcomed.
deploy.yml :
name: Deploy to Production
on:
push:
branches:
- 'master'
jobs:
deploy:
name: Deploy code to prod
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
- name: Deploy
uses: deployphp/action@master
with:
private-key: ${{ secrets.PRIVATE_KEY }}
known-hosts: ${{ secrets.KNOWN_HOSTS }}
dep: deploy prod -f .github/deploy.php
Upvote & Fund
- We're using Polar.sh so you can upvote and help fund this issue.
- We receive the funding once the issue is completed & confirmed by you.
- Thank you in advance for helping prioritize & fund our backlog.
Reacted by Michiel Bosman, Alies Lapatsin, Giacomo Moscardini, Dmitry Gladyshev, Stefan Zweifel, R. de Wilde, Marius Posthumus, CristianSG, Philipp Steingrebe and mluex
Activity
antonmedv commentedon Jan 5, 2021
Hmmmmm, can tell what is wrong.
neidiom commentedon Jan 25, 2021
@lcharette @antonmedv any ideas on how to fix this?
antonmedv commentedon Jan 25, 2021
It should be fixed in new release. Please test it.
neidiom commentedon Jan 25, 2021
@antonmedv does not work for me, getting the following error
antonmedv commentedon Jan 25, 2021
Now such file? Does any knows how to debug it?
neidiom commentedon Jan 26, 2021
@antonmedv if I add deployer with composer with the command below then it works. Any idea how to debug?
gracjankubicki commentedon Mar 11, 2021
@antonmedv I had a similar problem. I think this bug is caused by the fact that if deployer.phar does not exist then you download it but do not give it permission to execute
#9
dingo-d commentedon May 6, 2021
I'm also getting similar error when trying to use the action
with: private-key: *** dep: deploy *** *** *** staging -v (node:2511) UnhandledPromiseRejectionWarning: Error: spawn deployer.phar ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:264:19) at onErrorNT (internal/child_process.js:456:16) at processTicksAndRejections (internal/process/task_queues.js:80:21) (node:2511) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2) (node:2511) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.My GH action looks like this
JustChapman commentedon Jun 24, 2021
@neidiom can you give an example of how you are running
composer require deployer/deployer --dev? I cannot seem to get this to work, still running into the "failed with ENOENT" errors.zivan commentedon Sep 20, 2021
I had the same problem, created fork and opened pull request, you can check it https://github.com/zivan/action