8.4.2. Deploy an Application to a Standalone Server Instance with the Deployment Scanner
This task shows a method for deploying applications to a standalone server instance with the deployment scanner. As indicated in the Section 8.1, “About Application Deployment” topic, this method is retained for the convenience of developers, where the Management Console and Management CLI methods are recommended for application management under production environments.
Procedure 8.7. Task
Copy content to the deployment folder
Copy the application file to the deployment folder found atEAP_HOME/standalone/deployments/
.Deployment scanning modes
The application deployment varies between automatic and manual deployment scanner modes.Automatic deployment
The deployment scanner picks up a change to the state of the folder and creates a marker file as defined in the Section 8.4.5, “Reference for Deployment Scanner Marker Files” topic.Manual deployment
The deployment scanner requires a marker file to trigger the deployment process. The following example uses the Unixtouch
command to create a new.dodeploy
file.Example 8.1. Deploy with the
touch
command[user@host bin]$
touch
$EAP_HOME/standalone/deployments/example.war.dodeploy
The application file is deployed to the application server. A marker file is created in the deployment folder to indicate the successful deployment, and the application is flagged as Enabled
in the Management Console.
Example 8.2. Deployment folder contents after deployment
example.war example.war.deployed