Written by

InterSystems Corporation
Question Wietze Drost · Aug 24, 2022

VS Code connection using prefix

Hi,

Is there a way to include a prefix for the instance name in the server connection? I have 1 server with multiple iris instances, using 1 webserver. Each instance can be reached using a prefix in the url: (for example https://localhost/instance1/...).

I want to use VS code remote, but can't add the prefix to the hostname (or ip), and also not to the port, as this is numeric. Any idea how to solve this?

Product version: IRIS 2022.1

Comments

John Murray · Aug 24, 2022

In the intersystems.servers object in your settings JSON you can add a pathPrefix property within the webServer object of your connection definition. In your example:

"intersystems.servers": {
...
    "server1": {
        "webServer": {
            "host": "localhost",
            "port": 443,
            "scheme": "https",
            "pathPrefix": "/instance1"
        }
    },
...
}
0
Alex Woodhead · Aug 24, 2022

Suggest try Edit in settings.json

"pathPrefix": "/[Instance Name]",

For example:
"intersystems.servers": {
 "test1": {
   "webServer": {
     "scheme": "http",
     "pathPrefix": "/IRIS",
     "host": "localhost",
     "port": ...
   }
  }
}

0
John Murray  Aug 24, 2022 to Alex Woodhead

It won't necessarily be the instance name, depending on how the external web server has been set up.

0