此内容没有您所选择的语言版本。

Chapter 3. Application deployment in CodeReady Studio


In order to deploy applications to a server from within CodeReady Studio you must configure the IDE with information about the server. For a local server this information includes the following:

  • A server runtime environment with details about the server location, runtime JRE, and configuration files
  • A server adapter with management settings for the server runtime environment, including access parameters, launch arguments, and publishing options

JBoss Server Tools enables you to efficiently configure a local server ready for use with CodeReady Studio using Runtime Detection. This feature is useful for quickly configuring a server for deploying and testing an application.

3.1. Configuring a local server

Runtime Detection searches a given local system path to locate certain types of runtime servers. For any servers found, Runtime Detection automatically generates both a default server runtime environment and a default server adapter. These items can be used for immediate application deployment as is or they can be customized to meet your requirements.

The following section describes how to configure a local server in CodeReady Studio.

Procedure

  1. Start CodeReady Studio.
  2. Click Window Preferences.

    The Preferences window appears.

  3. Enter JBoss in the search field.
  4. Select JBoss Runtime Detection.
  5. Click Add.
  6. Locate the directory containing the runtime server.
  7. Click Open.

    The Searching for runtimes window appears.

  8. Click OK.
  9. Select the path to the runtime server directory.

  10. Click Apply and Close.

3.2. Configuring a remote server

The following section describes how to configure a remote server in CodeReady Studio.

Procedure

  1. Start CodeReady Studio.
  2. Press Ctrl+N.

    The Select a wizard window appears.

  3. Enter Server in the search field.
  4. Select Server.
  5. Click Next.

    The Define a New Server window appears.

  6. Select a server type.
  7. Click Next.

    The Create a new Server Adapter window appears.

  8. Select the Remote check box.
  9. Select a Controlled by option.
  10. Select the Server lifecycle externally managed check box.
  11. Select the Assign a runtime to the server check box.
  12. Click Next.

    The JBoss Runtime window appears.

  13. Click Browse in the Home Directory field to locate the runtime server.
  14. Click Next.

    The Remote System Integration window appears.

  15. Click Browse in the Remote Server Home field.

    The Browse remote system window appears.

  16. Specify the path to the directory that contains the remote server.
  17. Click Finish.

3.3. Deploying an application

After configuring the local server, you can deploy applications to the server from CodeReady Studio using the server adapter. The server adapter enables runtime communication between the server and CodeReady Studio for easy deployment of applications and server management.

The following section describes how to deploy an application to the server in CodeReady Studio.

Procedure

  1. Start CodeReady Studio.
  2. Right-click your project Run as Run on Server.

    The Run on Server window appears.

  3. Select the Choose an existing server check box.
  4. Select the server you want to deploy.
  5. Click Finish.

Your application opens in the internal CodeReady Studio web browser.

返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat