@quatronic/sdk 0.11.0-test.71f8765 → 0.11.0-test.7b4884c

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quatronic/sdk",
3
- "version": "0.11.0-test.71f8765",
3
+ "version": "0.11.0-test.7b4884c",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -56,8 +56,18 @@ If `pnpm dev` dies on `DATABASE_URL: Required`, your `.env` is stale: re-run
56
56
 
57
57
  Don't change `DB_PORT` or the port in either URL by hand: they are
58
58
  portal-managed, and `qore env pull` overwrites them with the assigned values.
59
- If the port is taken anyway, something else is listening on it — stop that, or
60
- ask for the module's local ports to be reassigned in the portal.
59
+ The portal never gives two modules the same port, also not across tenants.
60
+ If the port is taken anyway, `qore dev` names what holds it. Most often that is
61
+ another checkout of this module (a worktree or a second clone): stop its
62
+ database there (`docker compose down` in that folder) or work from that
63
+ checkout. Anything else: stop it, or ask for the module's local ports to be
64
+ reassigned in the portal.
65
+
66
+ An older app may still publish a fixed port in `docker-compose.yml`, as
67
+ `"5432:5432"` or `"127.0.0.1:${DB_PORT:-5432}:5432"`. Then every such app
68
+ collides on 5432 whatever port the portal assigned. Replace that line with the
69
+ `ports` entry from the compose file below, and remove any `DB_PORT=` or
70
+ `DATABASE_URL=` line from `.env.example`: `qore env pull` writes them.
61
71
 
62
72
  `ECONNREFUSED 127.0.0.1:<DB_PORT>` means the container is not running: `pnpm db:up`.
63
73
 
@@ -72,8 +82,9 @@ If the data belongs to another module's database, do not add one here: connect t
72
82
  services:
73
83
  db:
74
84
  image: postgres:18-alpine
75
- # Host port comes from DB_PORT, portal-assigned per module so two modules
76
- # with their own database never fight over 5432.
85
+ # Host port comes from DB_PORT, which the portal assigns per module so no
86
+ # two local databases share a port; `qore env pull` writes it. There is
87
+ # deliberately no default: a fixed port is what made databases collide.
77
88
  #
78
89
  # Bound to loopback only: on most Docker setups an unqualified host port
79
90
  # binds to 0.0.0.0, exposing this database (well-known postgres/postgres
@@ -81,7 +92,7 @@ If the data belongs to another module's database, do not add one here: connect t
81
92
  # *container* can no longer reach it via the host's LAN IP; that's the
82
93
  # intended trade-off for a local dev database.
83
94
  ports:
84
- - "127.0.0.1:${DB_PORT:-5432}:5432"
95
+ - "127.0.0.1:${DB_PORT:?DB_PORT is not set. Run qore env pull (or pnpm bootstrap) first}:5432"
85
96
  environment:
86
97
  POSTGRES_USER: postgres
87
98
  POSTGRES_PASSWORD: postgres