Skip to main content

Config

https://backstage.spotify.com/learn/standing-up-backstage/configuring-backstage/5-config-1/

PostgreSQL

https://backstage.spotify.com/learn/standing-up-backstage/configuring-backstage/5-config-2/

Backstage offers SQLite, an in-memory database, for easy local setup with no external dependencies. SQLite is a great way to kick the tires. But we recommend setting up PostgreSQL for a production-ready deployment. Backstage uses the Knex database library under the covers, which supports many popular databases.

# Test if your database is working
sudo -u postgres psql

Alterar a senha do usuário postgres ou criar novo usuário

ALTER USER postgres PASSWORD 'secret';
# OU
CREATE USER backstage WITH PASSWORD 'secret';

Earlier you saw the main Backstage configuration file, app-config.yaml in the root directory of your Backstage app. Backstage also supports environment-specific configuration overrides, by way of an app-config.<environment>.yaml file. This is where you'll add the database configuration, since you’re setting up a database on your local machine right now.

  • app-config.local.yaml
  • app-config.local-example.yaml

Restart app with yarn start. Note that if you've made any changes before, they might be gone. The default database is not persistent.