intersystems-community / intersystems-servermanager

VS Code helper extension defining connections to InterSystems servers

Home Page:https://marketplace.visualstudio.com/items?itemName=intersystems-community.servermanager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiple server connections in a workspace

joncard1 opened this issue · comments

I'm not sure if this is for Server Manager or ObjectScript Extension, but I find it difficult to manage a 12-factor application with this plugin. I'd like to be able to work on the ObjectScript code in a DEV server, then promote the code to TEST and PROD instances. In Atelier, I could select "Change Connection", but in this system, I have to go into settings.json, delete the JSON section for the ObjectScript connection in my workspace, go to Explorer and connect to a new server, then re-import. A 12-factor application (12factor.net) seems like a typical use-case for IRIS, it would be nice if that process were easier.

Hi @joncard1. I would argue that the code deployment pipeline should be centered on the source control system, not the IDE. Are you using Git, Perforce, or something else?

Hello @joncard1, you can create separate folders, one for each connection to a Caché instance. Then in VS Code, you can open several folders as one workspace (File > Add Folder to Workspace) and easily switch between them.
I agree with @isc-rsingh that some source control system like Git should be used to promote code between dev, test, prod. Yet I'm still trying to find out how to achieve this the best : a repository per Caché instance or one for all instances (assigning each one a different branch).

@joncard1 have you tried the new UI that Version 2.0 of Server Manager introduced? This gives you an easy way to create multi-root workspaces that can access many namespaces on many servers.