Skip to content

wheels deploy init fails in newly generated app due to missing deploy template path #2658

@zainforbjs

Description

@zainforbjs

Describe the bug
Running wheels deploy init inside a freshly generated Wheels application fails with:

[ERROR] Error: lucee.runtime.exp.ExpressionException: file or directory
[/Users/mac/Desktop/wwwroot/installer/myapp/cli/lucli/templates/deploy/init/deploy.yml.mustache]
does not exist

The command appears to look for deployment templates inside the generated application directory myapp/cli/lucli/templates/deploy/init/ but those template files do not exist in a newly scaffolded application.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new application:
wheels new myapp
  1. Enter the project directory:
cd myapp
  1. Run:
wheels deploy init
  1. Observe the error.

Expected behavior
wheels deploy init should:

  • successfully generate deployment configuration files
  • resolve templates from the CLI installation/bundled templates
  • or include the required deploy templates in the generated app

Actual behavior
The command fails because it attempts to resolve cli/lucli/templates/deploy/init/deploy.yml.mustache from inside the application directory, where the path does not exist.

Desktop

  • OS: macOS
  • CLI: Wheels 4.0.0 (development)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions