Skip to content

Create server as config file commited in workspace instead of using rsp-ui. #237

@ggjulio

Description

@ggjulio

Instead of using rsp-ui for creating a server it it possible to define at least a default one "as code" in git repo ?

In intelliJ we have the possibility to create launchers using Tomcat, jetty,... and commit them. (The IDE automatically pick them up. )
As a developer, to start a webapp I just need to click on the launcher. No need to deal with any kind of configuration. It just works out of the box.
Which is handy combined with devcontainers for creating ephemeral dev environments in few minutes.

The .vscode/settings.json file doesn't seem to have any option to do so. .vscode/launch.json either.
Do we already have any workaround yet ?

Otherwise is there already an initiative to make it more user friendly ? Maybe a new launcher type rsp-server ?
(https://code.visualstudio.com/api/extension-guides/debugger-extension )

// .vscode/launch.json
    "version": "0.2.0",
    "configurations": [
        {
            "type": "rsp-server",
            "name": "my webapp with tomcat",
            "tomcatServer": {
                "useCatalinaHome": true, // CATALINA_HOME=/usr/share/tomcat
            //    "home": "/usr/share/tomcat",
            //    "base": "/usr/share/tomcat",
            },
            // ...
            "deployments": [
               {
                  "name": "myapp:war",
                  "type": "exploded", // exploded or file
                  "contextPath": "/myapp"
               }
            ]
        }
]

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