Skip to content

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

@mariomka

Description

@mariomka
  • Deployer version: 7.4.0
  • Deployment OS: Ubuntu 20.04

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions