Skip to content

Framework Reinit Doesn't Recognize Webroot Setting in server.json #9

@homestar9

Description

@homestar9

What are the steps to reproduce this issue?

  1. Create a new app using the Ortus Module Template
  2. Add a server.json file to the project root and make sure the web.webroot value is set to test-harness
// example server.json
{
    "name":"myapp",
    "app":{
        "serverHomeDirectory":".engine/lucee5",
        "cfengine":"lucee@5"
    },
    "web":{
        "http":{
            "port":"60301"
        },
        "rewrites":{
            "enable":"true"
        },
        "webroot":"test-harness",
        "aliases":{
            "/moduleroot/myapp":"./",
            "/modules/myapp":"./"
        }
    },
    "openBrowser":"false",
    "cfconfig":{
        "file":".cfconfig.json"
    }
}

  1. Start the server from the root
  2. Try typing fwreinit in Commandbox

What happens?

You will see the error No server configurations found for '[your project folder]', so have no clue what to reinit buddy!

What were you expecting to happen?

The Coldbox-CLI should see the web root and attempt to reinit the framework.

What versions are you using?

Tested with coldbox-cli@be and Commandbox 6.0.0

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