deployphp / deployer

The PHP deployment tool with support for popular frameworks out of the box
https://deployer.org
MIT License
10.41k stars 1.47k forks source link

Provision: file_get_contents(./Caddyfile): Failed to open stream: No such file or directory #3819

Closed mariomka closed 2 months ago

mariomka commented 2 months ago

I'm trying to provision a clean server in Hetzner Cloud (CCX13 - dedicated 2 vCPU 8GB RAM) with the Laravel recipe. I got an error; I tried several times with different PHP versions and removed and created the server.

The error is the following:

[servername]  ErrorException  in website.php on line 24:
[servername]
[servername]   file_get_contents(./Caddyfile): Failed to open stream: No such file or directory
[servername]
ERROR: Task provision:website failed!

The deploy.yaml file:

import:
  - recipe/laravel.php

config:
  repository: 'git@github.com:XXX/xxx'

hosts:
  servername:
    remote_user: deployer
    deploy_path: '/var/www/my-project'

tasks:
  build:
    - run: uptime

after:
  deploy:failed: deploy:unlock