Business Port Preview
About 154 wordsLess than 1 minute
Services running in the Workspaces environment can be previewed by accessing business ports through WebIDE
or VSCode
/Cursor
client.
Method 1:
When using WebIDE
, you can add port mappings in the PORTS
panel of the WEBIDE
console, and the accessible URL of the business port will appear automatically.
The business port access URL can be obtained in one of the following two ways:
- From the PORTS panel in the WebIDE console.
- From the environment variable:
CNB_VSCODE_PROXY_URI
. For example:https://xxxxxxxxxx-{{port}}.__ENV_ORANGE_REMOTE_WEB_BUSINESS_DOMAIN
, Replace{{port}}
with the actual port number.
Tips
Note that the service needs to be started on 0.0.0.0
to use this method for access. Services started on localhost
or 127.0.0.1
cannot be accessed using Method 1.
Method 2:
You can forward the business ports you need to access to your local machine using the port forward
capability of the VSCode
/Cursor
client