CodeCharge Studio 3 can store publishing settings for several servers that are used during web development and for publishing the application. The most common scenario is that you are testing your application locally (you have web server and runtime environment configured on your development machine) and after passing the tests the files are uploaded to the production server. Any other scenarios with greater number of server configurations are now possible with CodeCharge Studio 3. Local development, testing, staging and production servers are possible to configure, each keeping its settings in a configuration unit called a Server Profile. SP stores publishing settings and database connections settings which may differ across different servers the application is published to and run on.
Each SP specifies a different set of publishing properties depending on the publishing method selected (Local/Network publishing vs FTP/SFTP/SSH publishing). Also the range of database connection settings depends on the database you are connecting to and API used to connect.
Server Profiles defined within current project scope are available through a listbox in the CodeCharge Studio 3 toolbar:
The listbox contains server configurations defined in the current project scope. Listbox selection specifies the active profile which is used when publishing project files. By default each CodeCharge Studio 3 project defines two profiles:
To define, duplicate or rename a server profile Servers dialog is used. To access it choose Edit Servers... option in the toolbar Server Profiles switching listbox or click Edit Servers... button in the Project settings dialog's Publishing section.
The Servers dialog lists Server Profiles defined in the project scope. The list presents Server Name and Type columns specifying Server Profile's name and publishing method chosen. The active Server Profile is marked with (Active) following its name.
Button | Functionality |
---|---|
New... | This button displays a dialog to specify a new Server Profile name. Note:
|
Add from file... | This button displays common file open dialog that allows to select another project's .CodeCharge Studio file which includes its Server Profiles to extract and copy to the current project scope.
New Server Profile entries are created in the current project as a copy of the original project's settings. If extracted Server Profile names are already defined in the current project they are renamed to maintain uniqueness. Similarly to adding a profile, an Server Profile reminder dialog is displayed if configured globally. |
Rename... | This button displays Rename profile window for the Server Profile selected in the list. It can be used for customization of an existing Server Profile's name.
Note: Double-clicking an item in the Server Profiles list has the same effect. |
Duplicate... | This button duplicates the currently selected SP by copying its settings into a new SP. The new SP's name defaults to ServerN, where N is a consecutive number (the SP can be renamed afterwards). |
Set active | This button defines the SP to be used for generating code and publishing operations. This operation is equivalent to switching active server profile using toolbar's Server Profiles listbox.
The currently active server profile is marked with (Active) following its name in the list. |
Remove | This button removes the currently selected Server Profile. The settings are lost unless Cancel button is pressed to cancel dialog's editing operations.
Note: The button is only enabled for non-active Server Profiles. Active Server Profile cannot be removed. |
Help | This button displays help topics related to the Servers dialog and Server Profiles. |
OK | Clicking this button approves changes made to the Server Profiles lists. |
Cancel | Clicking this button rejects all changes made to the Server Profiles list during dialog session. The list is reverted to the state before opening the dialog. |