Publishing involves copying files (projects, resource files, and server configurations)
to the correct location for the server to find and use them. You can either publish your application
automatically or manually.
About this task
If you choose to publish your application automatically, the publishing frequency is
controlled by a configurable publishing interval. If you do not want to wait for the automatic
publishing interval to pass, or the
Never publish automatically option is
enabled, at anytime you can manually request the workbench to issue a publish command to the server.
Each manual publish command causes a single publishing request to the server.
Procedure
- To publish your application to a server automatically, complete the following steps:
- Open the Server preferences page by clicking , and select the Automatically publish when starting servers
check box. The workbench checks to see if your project and files on the server are synchronized. If
they are not, the project and the files are automatically updated when the server is either started
or restarted.
- (optional) Modify the Publishing settings. To modify the Publishing settings, right-click the
server in the Servers view and select Open. In the Overview page of the server editor, under the Publishing settings, you will find the
following settings:
- Never publish automatically: Specifies the workbench should never publish
files to the server.
- Automatically publish when resources change: Specifies the workbench to
issue a publish after changes on a file that is associated with the server are saved and a full time
interval has passed in the Publishing interval setting. In the workbench, the
default setting is the Automatically publish when resources change option is
enabled with a value set in the publishing interval.
- Automatically publish after a build event: Specifies the workbench to
issue a publish after changes on a file that requires a build and is associated with the server are
saved, and a full time interval has passed in the Publishing interval
setting.
- Publishing interval (in seconds): Specifies the number of seconds
required before the workbench calls a publish to happen on the server. However, if you make a
subsequent change to the files before this time interval has completed, the publish is delayed as
the timer is reset. The workbench makes a publish to the server only after the full time interval
has passed. If you set the publishing interval to 0 seconds, an immediate publish should happen
after changes on a file are saved.
- To publish your application to a server manually, complete the following steps:
- Select the server and then click the Publish to the server
icon located on the toolbar.
- Right-click the server and then select Publish.