Skip to content

Built-in Startup ​

App Startup ​

NameDescription
a-version:databaseInitAutomatically create a test database
a-version:databaseNameAutomatically set the database name of the default datasource
a-web:listenStarts listening port

1. a-version:databaseInit ​

This startup performs the following logic:

  1. Automatically create a test database in the local development and testing environment. If have isolated mode tenants, an isolated database corresponding to each tenant will be automatically created
  2. Automatically perform database schema migration, just as the version.update method does

2. a-version:databaseName ​

Since the test database is automatically created in the local development and testing environment, the database name also changes. This startup will automatically set the database name of the default datasource.

Instance Startup ​

NameDescription
a-version:instanceInitInitials data for the instance, just as the version.init method does. See: Migration and Changes
a-printtip:printTipOutputs messages to the console, such as Swagger URL, etc.
a-queue:loadQueueWorkersStarts the workers of the queues
a-schedule:loadSchedulesStarts schedules

Released under the MIT License.