🚀 Welcome to MDriven Learn –  MDriven is now on Discord!  Don’t miss the latest Release Notes.
MDrivenStart Deploy
This page was created by Hans.karlsen on 2020-07-10. Last edited by Wikiadmin on 2026-07-29.

You can publish a validated MDriven model to a selected site or slot so that users can run your application in a web browser.

What deployment does

Deployment uploads your current model to a site that runs an MDrivenServer. The server receives the model and evolves the database so that its SQL structure matches the uploaded model. When the update is complete, users who open the site's URL use the updated application.

For example, if you add a new persistent class or attribute in your model, deploying the updated model causes MDrivenServer to update the database structure to match that change.

A deployed application is accessed through a browser. You can continue to change the model and deploy later versions as your system evolves.

Before you deploy

Complete these checks before uploading a model:

  1. Build and save the model in MDriven Designer. Organize related classes in packages as needed.
  2. Validate the model. Open Verify and make sure that the model has no validation errors. Validation also runs when you save the model.
  3. Run the application locally with the Prototyper to inspect what users will see and identify missing behavior or views.
  4. Make sure you have a site available to run the application. If you do not already have one, set up a site before selecting a deployment target.

The Prototyper runs a local mini web server and stores created information in a simple file. A deployed system instead runs on MDrivenServer and uses its database. Do not treat a successful local prototype as a replacement for validating the model before deployment.

Deploy a model

  1. Go to portal.mdriven.net.
  2. Log in, or create an account if you do not yet have one.
  3. Select the site and slot that will host the system. A site is the web location that runs the application; a slot is the selected location within that site for the deployed system.
  4. Upload your current model to the selected site and slot.
  5. Wait for MDrivenServer to receive the model and evolve the database to match it.
  6. Open the site's URL in a browser and verify that the updated application is available.

Deployment flow

Stage What you do Result
Model Define and update classes, associations, views, and user actions in MDriven Designer. Your model describes the application to publish.
Validate Run validation and resolve every error. The model is executable and ready to run.
Choose target In the portal, select the site and slot that will receive the model. You identify where the application will run.
Upload Upload the current model. MDrivenServer receives the model.
Update Let the server evolve the database to match the uploaded model. The deployed application and database structure are updated.
Use Open the site's URL in a browser. Users access the updated system.

Continue evolving the application

Deployment is part of an iterative workflow:

  1. Change the model in MDriven Designer.
  2. Validate it with Verify.
  3. Test the change with the Prototyper.
  4. Upload the current model again to the intended site and slot.
  5. Confirm the result at the site's URL.

For example, after adding an attribute to a class, validate the model, check the change locally in the Prototyper, and then upload that revised model. MDrivenServer evolves the database structure when it processes the uploaded model.

Other deployment approaches

This page describes deployment through the MDriven portal to a selected site and slot. MDriven can also be deployed in cloud, on-premises, and Docker-based environments. See Model-Driven Development Simplified for an overview, Deploy Turnkey on your own Azure with OneDrive for an Azure deployment path, and Two Ways To Install Docker Desktop on MacOS Intel for Docker Desktop installation guidance on macOS Intel.

See also