Publish to Remote
Introduction
The Publish to Remote feature in Erizos Studio enhances collaboration by enabling users to seamlessly share UI versions across multiple machines in the network. this feature is integrated seamlessly with the Revision feature allowing users to have flexible history list of the changes made in the UI.
Features
Publishing UI Versions
The feature supports both creating a new UI or replacing an existing one on the remote machine. If the UI does not exist on the remote server it is created there. If a UI of that name already exists, that UI is updated in place: it keeps its identity on the remote server, its script is replaced with the one you are sending, and the new revision is added to the front of its revision list so the existing revisions are kept.
Integration with Revisions
The feature is seamlessly integrated with the Revisions. Users can create multiple timelines of UI revisions, ensuring a detailed history of changes. Every publish stores a revision of the script you are sending on the remote server - this is why the Revision name field is required.
Handling UI Conflicts
If a UI with the same name exist in the same machine, a warning will be shown. The warning does not block you: you can rename the UI you are publishing, or continue and update the existing remote UI. Separately, if the remote UI holds changes that were never stored as a revision of its own, Studio offers to back those changes up as a revision before they are replaced.
How to use
In UI Builder, open the UI you want to publish. The Publish UI menu item only works on the UI that is currently open.
Click the Hamburger button at the upper left, then select "Publish UI" 
The Publish To Remote wizard has three steps - Server, UI Info and Publish - shown at the top of the dialog. Move between them with the Back and Next buttons in the footer; Cancel closes the wizard.
1. Server
Enter the address of the Erizos Server where you want to publish the UI and provide the necessary credentials to connect to the server.
- Server: The address of the Erizos Server you want to publish the UI to. You can give just the host, or
host:port- the default port is 5550. - Username: The Username of the Server
- Password: The Password of the Server
The server and username you used last time are remembered and pre-filled the next time you publish.
Info
When you leave this step Studio reads the remote server's version and compares it with your own. If they differ you get the warning "Mismatch in versions, Client: x, Server: y" (or "Version unknown, …" if either version cannot be parsed). This is a warning only - you can still continue.
2. UI Info
This step shows the UI Type and asks for two values.
- UI Name (required). The name may contain letters, digits and underscores only, and may not start with a digit - anything else is rejected with "Invalid UI Name". As you type, Studio checks the remote server: if a UI of that name is already there you get the warning "UI with that name already exists". That is a warning, not a block - continuing updates that remote UI.
- Revision name (required). The wizard will not advance until this is filled in. Studio stores a revision with this name on the remote server holding the script you are publishing.
3. Publish
If the remote UI has changes of its own that were never stored as a revision, Studio offers to back them up before they are overwritten: switch Backup remote revision on and type a revision name (the name is required once the switch is on), or leave the switch off to let those changes be replaced. 
Info
This prompt has nothing to do with the UI you are publishing. It appears when the remote UI's current script differs from its own most recent revision - that is, when someone edited the remote UI and did not save a revision of it.
The same step then shows a summary of the details you are sending to the server: the UI name, the revision name, and - when a backup was offered - whether a remote revision will be saved and under what name. 
Once the publish completes the step reports UI successfully published.

