WAS v8.5 > Deploy applications > Deploy applications to the Liberty profile > Add and running an application on the Liberty profile using WebSphere Studio

Publishing your application using WebSphere Studio

Publishing involves copying files (projects, resource files, and server configurations) to the correct location for the server to find and use them. In the test environments, these files might already be in the correct location. In some cases, temporary copies of the server configurations might be created. We can either publish your application automatically or manually.

Automatically publishing to a server

  1. If the Automatically publish when starting servers check box on the Server preferences page (Window > Preferences > Server > Launching) is selected, 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.
  2. In the workbench, we have several options to choose for the Publishing settings. We can set these Publishing settings by going into the Servers view, right-click the server and select Open. The Server editor opens. In the Overview page of the server editor, under the Publishing settings, you are going to find the following settings:

    1. Never publish automatically: Specifies the workbench should never publish files to the server.
    2. Automatically publish when resources change: Specifies the workbench to issue a publish after changes on a file associated to 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.
    3. 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 to the server are saved, and a full time interval has passed in the Publishing interval setting.
    4. Publishing interval (in seconds): 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 we set the publishing interval to 0 seconds, an immediate publish should happen after changes on a file are saved.

See also


Parent topic: Add and running an application on the Liberty profile using WebSphere Studio

Manually publishing to a server

About this task

If we do not want to wait for the automatic publishing interval to pass or the Never publish automatically option is enabled, at anytime we 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. To publish your application manually we can complete one of the following actions in the Servers view:

Procedure


|