Local development

Configure resources for local development.
If you are developing a task locally that references a Resource, you can configure that task to use a local version of that resource (instead of hitting a resource in production or another environment). This is useful, for example, if you want a SQL query to run against a locally running PostgreSQL instance.
The configuration for local resources is stored locally in a dev config file (airplane.dev.yaml) - for more information on this file and how to configure it, see the Dev config file reference.
yaml
Copied
1
// airplane.dev.yaml
2
resources:
3
- id: res-db
4
slug: db
5
name: My database
6
kind: postgres
7
host: localhost
8
port: "5432"
9
ssl: disable
10
username: postgres
11
password: password
12
database: postgres