You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/README.md
+9-2Lines changed: 9 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,7 +64,6 @@ If you export the PORT environment variable, that determines what port everythin
64
64
65
65
CoCalc also runs a NATS server listening on two ports on localhost, one for TCP and one for WebSocket connections. To avoid conflicts, you can customize their ports by setting the environment variables `COCALC_NATS_PORT` (default 4222), and `COCALC_NATS_WS_PORT` (default 8443).
66
66
67
-
68
67
**Note**: If you installed `pnpm` locally (instead of globally), simply run `npm run` in place of `pnpm` to execute
69
68
these commands via [NPM run scripts](https://docs.npmjs.com/cli/v10/using-npm/scripts).
70
69
@@ -144,7 +143,7 @@ You can also just type `pnpm psql` :
144
143
~/cocalc/src$ pnpm psql
145
144
```
146
145
147
-
NOTE: As of Jan 2023, CoCalc should fully work with any version of PostgreSQL from version 10.x onward. However, obviously at some point we will stop supporting PostgreSQL v 10.
146
+
NOTE: As of Jan 2023, CoCalc should fully work with any version of PostgreSQL from version 14.x onward. However, obviously at some point we will stop supporting PostgreSQL v 14.
148
147
149
148
### 2. More about Starting the Hub
150
149
@@ -186,6 +185,14 @@ which installs exactly the right packages, and builds the code.
186
185
187
186
See `packages/backend/data.ts` . In particular, you can set BASE_PATH, DATA, PGHOST, PGDATA, PROJECTS, SECRETS to override the defaults. Data is stored in `cocalc/src/data/` by default.
188
187
188
+
For NATS when doing development, it can be useful to set these in .bashrc so NATS uses ports of your choosing that are available.
189
+
190
+
```sh
191
+
export COCALC_NATS_SERVER_NAME=localhost
192
+
export COCALC_NATS_PORT=5007
193
+
export COCALC_NATS_WS_PORT=5008
194
+
```
195
+
189
196
#### File System Build Caching
190
197
191
198
There are two types of file system build caching. These greatly improve the time to compile typescript or start webpack between runs. However, in rare cases bugs may lead to weird broken behavior. Here's where the caches are, so you know how to clear them to check if this is the source of trouble. _As of now, I'm__**not**__aware of any bugs in file system caching._
0 commit comments