question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Command failed with ENOENT: deployer.phar

See original GitHub issue

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

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:11
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
JustChapmancommented, 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.

0reactions
zivancommented, Sep 20, 2021

I had the same problem, created fork and opened pull request, you can check it https://github.com/zivan/action

Read more comments on GitHub >

github_iconTop Results From Across the Web

deployphp/deployer - Gitter
Hello guys, I'm new to deployer. I tried running dep deploy testing but i'm getting this error.
Read more >
deployphp - Bountysource
Error: Command failed with ENOENT: deployer.phar deploy prod -f .github/deploy.php spawnSync deployer.phar ENOENT. More verbose error message would be ...
Read more >
Kudu deployment failing - can't find node or bcmath
I removed the Node commands in my Kudu script and it still failed now complaining that PHP extension bcmath couldn't be found. Composer...
Read more >
PHP Parse error on gulp default for mibew live chat-node.js
... the file gulpfile.js and put the file composer.phar in the same directory and strated again with "gulp default" from command line and......
Read more >
Untitled
IOException: Cannot run program "docker": error=2, No such file or ... and I was confused. env' uncaught error: enoent: no such file or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found