### To use auto deploy

The auto deploy feature enables you to deploy a prepackaged application or module by copying it to the domain-dir`/autodeploy` directory.

For example, copy a file named `hello.war` to the domain-dir`/autodeploy` directory. To undeploy the application, remove the `hello.war` file from the `autodeploy` directory.

You can also use the Administration Console or `asadmin` tool to undeploy the application. In that case, the archive file remains.

Note - Auto deploy is only available for the default server instance.

The auto deploy feature is intended for development environments. It is incompatible with session persistence, a production environment feature. Do not enable session persistence if auto deployment is enabled

1. In the tree component, select Application Server.

2. In the tree component, expand the Stand-Alone Instances node.

3. Click server (Admin Server).

4. Click Advanced.

5. On the Applications Configuration page, configure the following:

   1. Enable or disable auto deploy by selecting or deselecting the Enabled checkbox.

   2. In the Auto Deploy Poll Interval field, specify how often the server checks the auto deploy directory for application or module files.

      Changing the poll interval does not affect the amount of time it takes to deploy an application or module.

   3. In the Auto Deploy Directory, if you specify the directory where you build your application, then you won't have to copy the file to the default auto deploy directory.

      The default is a directory called `autodeploy` in the server instance's root directory.

      By default a variable is used to eliminate the need to manually change the directory for multiple server instances. For more information on these variables, see To set the Advanced Domain Attributes.

   4. To run the verifier before deployment, select the Verifier: Enabled checkbox.

      The verifier examines the structure and content of the file. Verification of large applications is often time-consuming.

   5. To precompile JSP pages, select Precompile: Enabled checkbox.

      If you do not select this checkbox, the JSP pages are compiled at runtime when they are first accessed. Because compilation is often time-consuming, in a production environment select this checkbox.

##### See Also

To configure dynamic reloadingTo configure dynamic reloading