Reconnecting the Backend
When UPstudio (or its Remote Access server) is restarted, UPcode loses its connection and must reconnect. Besides Auto Connect and manually running the connect command in VS Code, UPcode also supports triggering a reconnect from an external script — useful when a restart script needs to re-establish the connection automatically, without manual interaction.
Trigger File
UPcode watches for a trigger file in the system temp directory:
| Platform | Trigger file |
|---|---|
| Windows | %TEMP%\actifsource-connect |
| Linux / macOS | /tmp/actifsource-connect |
As soon as this file is created or changed, UPcode runs the connect command (actifsource.connect_resource_access) after a short delay (~200 ms).
Triggering a Reconnect
PowerShell:
New-Item -ItemType File -Force $env:TEMP\actifsource-connect
Bash:
touch /tmp/actifsource-connect
This is typically called at the end of a restart script, right after the backend (UPstudio / Remote Access server) has become reachable again.