What Happens When You Stage and Publish Visual Applications?

To stage and publish an app, you deploy the app's resources to the Visual Builder runtime environment that provides services used by the staged and published apps.

Note:

If you want to deploy a visual application to multiple instances, the best option is to use VB Studio to set up additional deployment instances. See Add Additional Deployment Instances.

The Visual Builder runtime environment provides the server for delivering pages in web applications, and services your web (and mobile) apps might use to access data, including the database used to store data and the proxy server for managing connections to REST services. The runtime is used when you are designing apps in the Designer and for staged and published applications. The runtime also integrates Oracle Identity Cloud services (IDCS) to manage the authentication and authorization of app users.

The following steps are performed for you when you stage an app:
  • The application's resources are copied to a directory on the server
  • The database schema in the staging database is updated with changes from the development database
  • A URL is created for accessing the staged web app. The web app accesses the services and resources provided by the staged application.

When you stage an app, you can choose to copy the data from your development database to the staging database, create a database with no data, or use the data already in the database if it has already been staged.

The following steps are performed for you when you publish an app:
  • The directory containing the staged application's resources becomes the live app. The staged app is not accessible after it is published.
  • The database schema in the live database is updated with changes from the staging database. You can choose if and how data should be migrated from the staging database to the live database.
  • A new permanent URL is created for accessing the live web app. The web app accesses the services and resources provided by the published app.

If you are staging or publishing a mobile app as a progressive web app (PWA), the Visual Builder runtime serves the app's pages when a user visits the URL of the staged or published PWA. When you publish a PWA-enabled mobile app, users can download and install the mobile app directly from the URL in the browser and run it like a native app. This allows you to distribute a mobile app without first publishing it to an app store.

You must stage an app before you can publish it. When an app is published, the staged app becomes the live version, and the app settings defined for the staged app are applied to the published app. You should confirm that an app's settings, for example, its security settings and credentials, are working correctly before you publish an app, because these cannot be modified after it is published without creating a new version and staging and publishing it again. For example, when you are ready to publish an app, you might need to modify the credentials and authentication mechanism you used for connecting to a service during development because they are not suitable for the published app. In this case, you will need to edit the app to specify the credentials required for the published app and stage it again.

The runtime environment also provides a proxy server that your apps can use to help with authorizing calls to services. For example, you can use the proxy server to avoid potential CORS issues when calling a service. This is convenient if you are sending to requests to services in another domain and you cannot modify its allowlist. You can bypass the proxy if you choose, for example, by using the Direct authentication mechanism in your app to call services.