Skip to content

Commit 340746e

Browse files
authored
fix: Unavailable. @cubejs-backend/server inside current directory requires cubejs-cli (^0.22) (#1265)
* feat(cubejs-cli): Add postgres configuration example * fix(@cubejs-backend/server): Allow any version of cubejs higher 0.22 * feat(cubejs-cli): Add link inside cube.js file for documentation reference
1 parent 88560fb commit 340746e

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

packages/cubejs-cli/src/templates.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ const ordersJs = `cube(\`Orders\`, {
197197
});
198198
`;
199199

200-
const cubeJs = `
200+
const cubeJs = `// Server options go here: https://cube.dev/docs/@cubejs-backend-server-core#options-reference
201201
module.export = {
202202
};
203203
`;
@@ -206,12 +206,22 @@ const dockerCompose = `
206206
version: '2.2'
207207
208208
services:
209+
# Example of PostgreSQL configuration, uncomment if you want to use postgres
210+
# postgres:
211+
# image: postgres:12.4
212+
# environment:
213+
# POSTGRES_USER: 'test'
214+
# POSTGRES_PASSWORD: 'test'
215+
# POSTGRES_DB: 'test'
216+
209217
cube:
210218
image: cubejs/cube:latest
211219
depends_on:
212220
- redis
221+
# - postgres
213222
links:
214223
- redis
224+
# - postgres
215225
ports:
216226
- 4000
217227
volumes:

packages/cubejs-server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"cubejs-server": "./bin/server.js",
2424
"cubejs-dev-server": "./bin/dev-server.js"
2525
},
26-
"cubejsCliVersion": "^0.22",
26+
"cubejsCliVersion": ">=0.22",
2727
"scripts": {
2828
"postpack": "rm -f oclif.manifest.json",
2929
"prepack": "npm run tsc && oclif-dev manifest",

0 commit comments

Comments
 (0)