
services:
db:
image: postgres:alpine
environment: { POSTGRES_PASSWORD: postgres }
ports: [ '5432:5432' ]
restart: alwaysdocker-compose -f pg.yml up -d
| Host | localhost |
| Database | postgres |
| Port | 5432 |
| Username | postgres |
| Password | postgres |


{
"requires": {
"db": {
"[pg]": {
"kind": "postgres",
"credentials": {
"host": "localhost", "port": 5432,
"user": "postgres",
"password": "postgres",
"database": "postgres"
}
}
}
}
}"cds": {
"requires": {
"db": {
"[development]": { "kind": "postgres", "impl": "@cap-js/postgres", "credentials": { "url": "db.postgres" } },
"[production]": { "kind": "postgres", "impl": "@cap-js/postgres" }
},
"[production]": {
"auth": "dummy"
}
}
}cds deploy --profile pg
cds watch --profile pg
{
"version": "0.2.0",
"configurations": [
{
"name": "cds serve --profile pg",
"request": "launch",
"type": "node",
"cwd": "${workspaceFolder}",
"runtimeExecutable": "cds",
"args": [
"serve",
"--with-mocks",
"--in-memory?",
"--profile",
"pg"
],
"skipFiles": [
"<node_internals>/**"
]
}
]
}You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 29 | |
| 26 | |
| 21 | |
| 21 | |
| 19 | |
| 14 | |
| 14 | |
| 14 | |
| 14 | |
| 10 |