Skip to content

Commit f789598

Browse files
committed
chore(examples): align example APP_NAME values
1 parent 9496b11 commit f789598

File tree

6 files changed

+11
-10
lines changed

6 files changed

+11
-10
lines changed

docs/features/postgres-and-s3.md

+6-5
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,12 @@ POSTGRES_PASSWORD=postgres
6161
```
6262

6363
Let's break it down a bit. `APP_NAME` is used in various places, but most
64-
importantly it is the default name for your database, file bucket and logs. Then
65-
we have some PostgreSQL connection configuration, kept as simple as possible.
66-
For the S3 connection to Minio we don't need to configure anything. Compas
67-
provides a function to use the default connection settings in development. For
68-
production you should use one of the recommended ways as per the
64+
importantly, it is the default name for your database, file bucket and logs.
65+
Then we have some PostgreSQL connection configuration, kept as simple as
66+
possible. For the S3 connection to Minio we don't need to configure anything.
67+
Compas provides a function to use the default connection settings in
68+
development. For production you should use one of the recommended ways as per
69+
the
6970
[AWS SDK docs](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/setting-credentials-node.html).
7071

7172
And lastly we need to install `@compas/store`:

examples/crud-simple-todo/.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
NODE_ENV=development
2-
APP_NAME=exampletodo
2+
APP_NAME=crud-simple-todo
33

44
POSTGRES_HOST=127.0.0.1:5432
55
POSTGRES_USER=postgres

examples/crud/.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
NODE_ENV=development
2-
APP_NAME=examplecrud
2+
APP_NAME=crud
33

44
POSTGRES_HOST=127.0.0.1:5432
55
POSTGRES_USER=postgres

examples/default/.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
NODE_ENV=development
2-
APP_NAME=defaultexp
2+
APP_NAME=default
33

44
POSTGRES_HOST=127.0.0.1:5432
55
POSTGRES_USER=postgres

examples/with-auth/.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
NODE_ENV=development
2-
APP_NAME=withauth
2+
APP_NAME=with-auth
33

44
POSTGRES_HOST=127.0.0.1:5432
55
POSTGRES_USER=postgres

packages/cli/src/visualise/sql.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function formatGraphOfSql(codeGen, structure) {
1515
const entities = codeGen.getQueryEnabledObjects({ structure });
1616

1717
let src = `
18-
digraph ${environment.APP_NAME} {
18+
digraph "${environment.APP_NAME}" {
1919
label = "label";
2020
fontsize = 14;
2121
rankdir = "TB";

0 commit comments

Comments
 (0)