Skip to content

Commit 80bdefb

Browse files
committed
doc: update on direct host
1 parent 7112fca commit 80bdefb

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

.github/assets/direct-host.png

116 KB
Loading

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
# NodeJS-PostgreSQL-Demo
22

3-
This is an example NodeJS application that works with PostgreSQL on Clever Cloud.
3+
This is an example Node.js application that works with PostgreSQL on Clever Cloud.
44

55
The application is a very simple list where you can add or delete values.
66

77
To install it, simply fork this repository and create an application from your GitHub repo.
88
Then create a PostgreSQL add-on and link it to your application, either via the <a href="https://www.clever-cloud.com/doc/clever-tools/getting_started/" target="_blank">Clever Tools CLI</a> or via the <a href="https://console.clever-cloud.com/" target="_blank">Clever Cloud console</a>.
99

10-
That's it, the application will use the environnement variables to connect to the PostgreSQL DB.
10+
## Direct port and host
11+
12+
Since this application can't run without connecting to a DB, ensure connections are quick by enabling direct port and host on your PostgreSQL add-on before deploying this app:
13+
14+
![direct host and port creation on Clever Cloud console](.github/assets/direct-host.png)
15+
16+
That's it, the application will use the `POSTGRESQL_ADDON_DIRECT_URI` environnement variable to connect to the PostgreSQL DB.

0 commit comments

Comments
 (0)