Genesis Start
Genesis Start enables you to run and preview an application on your local desktop. This is useful when you are developing locally.
From the command line, go to your project's server
directory and run:
- Windows
- Mac OSX / Linux
.\gradlew.bat genesisStart
./gradlew genesisStart
If the command fails, you probably need to enable Genesis Start
Genesis Start provides a simple UI to run your app.
A list of processes is displayed in the main area, and a side toolbar provides buttons for selecting different actions.
Using Genesis Start
Bootstrap and launch
This button bootstraps the application with a single click.
It is helpful when:
- starting an application for the first time
- starting an application after you have made changes to the database schema
Bootstrap first runs remap
, imports the project data, then runs ConsolidateRights
, and finally Start All
.
Import data
This button enables you to select csv files to import into your application's database. It uses the Genesis SendIt
command to do this.
Sync processes
This button synchronises any changes made to the project's process configuration.
Where File -> Settings -> Use Genesis Sync
is enabled (which it is by default), project changes are synchronised automatically. You can then use this button to force synchronisation.
Start all
This button starts all processes and the web UI. This is the quickest way of starting your app if you haven't made any changes to the schema.
Controlling individual processes
You can stop and start individual processes using the button next to the process name.
To view a real-time log of a process that is running, click on the process in the list.
Compacting processes
The Process Profile
menu allows you to select process configuration.
Dev Compact
compacts processes efficiently to run more server capabilities under single processes and save on processing and memory overheads. It is the recommended option for efficiently previewing your application.Compact
compacts processes in such a way that they would still run in a clusterProduction
sets process configuration per the project set-up. See process configuration for more details on configuring processes.
If you need to cut down on memory usage when you build and run locally, select File -> Settings -> Use Compact Processes
before you start.
Enabling Genesis Start
An older existing project can be enabled to use Genesis Start if it uses:
- the simplified structure; this includes any project generated through Create
- the Genesis Gradle Settings plugin
If you need to enable Genesis Start, there are two things that you need to do:
- Amend the settings file.
- Amend the build file.
Amending the settings file
In your project's server/settings.gradle.kts
file, add google()
to repositories
under pluginManagement
.
// in repositories under plugin management, add google() at the end:
pluginManagement {
repositories {
// other repositories
google() // <- add this
}
}
Amending the build file
In your project's server/build.gradle.kts
file, add the plugin:
// add Genesis Start to plugins
plugins {
// other plugins..
id("global.genesis.genesis-start-gui") version "0.1.6"
}