I am trying to run my spring boot application on new JetBrain Fleet IDE, but I could not find easily a way to do that.
In the documentation page , the JetBrain said:
An object that specifies custom environment variables. To define an environment variable, add a property, where the key is the variable name and the value is the value of the variable, for example:
"environment": {
"TEMP_DIR": "/home/user/temp",
"GENERATE_RANDOM_PASSWORD": "true"
}
But, they do not show where this "environment" object goes.
After try a lot, I found a solution:
The final run.json file should stay like this:
{
"configurations": [
{
"name": "run app",
"type": "gradle",
"tasks": [
"bootRun"
],
"environment": {
"DATABASE_URL" : "jdbc:postgresql://localhost:5432/test",
"DATABASE_USER" : "Postgres",
"DATABASE_PASSWORD" : "Postgres"
},
}
],
}