OceanLaunch docs

Build, ship and run your apps

Deploying

Variables and secrets

Give your app its settings as environment variables, without putting them in your code.

Add a variable

  1. Open the app and choose the Environment tab.
  2. Enter a name and a value. Switch on Secret for passwords, keys and tokens.
  3. Choose Save variable, then redeploy the app: variables apply from the next deploy.

You can also paste a whole .env file under Import: one NAME=value per line; export, quotes and # comments are understood. Names that look secret (containing PASSWORD, SECRET, TOKEN, KEY and so on) are stored as secrets.

Secrets

Every value is stored encrypted. A secret's value is never shown again after you save it, not even to you: to change it, enter a new value. Your app receives secrets like any other variable.

Rules

Spring Boot

Spring Boot reads environment variables as settings: SPRING_MAIL_HOST sets spring.mail.host, MYAPP_FEATURE_ENABLED sets myapp.feature.enabled. Connecting a database adds the SPRING_DATASOURCE_* variables for you.