Before using dynamic deployment, you must enable the
feature and add a data source connection for the data source containing the
deployment metadata.
To enable dynamic deployment:
-
In the Deployment layer, double-click the
environment or server file for the application you are using. The file
opens in the editor window.
-
In the Overview tab, select the
Dynamic check box to enable dynamic metadata
deployment. Enabling Dynamic adds the mixin
models necessary for dynamic deployment. The Deployment data source is
added to the list of available data source connections.
-
Verify that the Deployment User and
Password fields match the login for the user
who will deploy metadata.
-
In the environment or connections file, select the
Data Source Connections tab.
-
Click the Select button
. Add the data source
connection for the Deployment data source.
-
Configure the Deployment data source. See Configuring data source connections
for more information.
Note: If you want to store uploaded models in the same database
as the DefaultRelationalDatabase data source, copy the settings over
to the Deployment data source.
-
Use the Data Load Tool to create tables to store deployment
metadata:
-
In the toolbar, click the arrow beside the Run
Tool button
and select Data Load
Tool. The Data Load Tool dialog opens.
-
In the Model section, select
Current.
-
In the Server and Connections section, specify the server and
connections file for the model to use.
-
In the Options section, in the Command
field, select recreateschema. In
the Data Source field, select
Deployment.
-
Click Run to create the system
schema.
Dynamic deployment is now enabled.
Before the Deployment Tool commands can be used, the deployment
user must be granted the deployment:DeployMetadata privilege. For more information about assigning privileges, see the NexJ CRM
Administrator Guide
.