Jérémy
Jérémy
TTwenty
Created by Jérémy on 12/6/2024 in #❓︱help
Setup a dev and prod server
If you speak French, that's great; otherwise, English is fine.
5 replies
TTwenty
Created by Jérémy on 11/25/2024 in #❓︱help
Try to setup Twenty on local
thanks a lot @Weiko @thomast
25 replies
TTwenty
Created by Jérémy on 11/25/2024 in #❓︱help
Try to setup Twenty on local
Its okkkk thats working !!!
25 replies
TTwenty
Created by Jérémy on 11/25/2024 in #❓︱help
Try to setup Twenty on local
seems ok for database, i have new errors now aha
25 replies
TTwenty
Created by Jérémy on 11/25/2024 in #❓︱help
Try to setup Twenty on local
in the packages/twenty-server/.env i have : PG_DATABASE_URL=postgres://postgres:twenty@localhost:5432/default
25 replies
TTwenty
Created by Jérémy on 11/25/2024 in #❓︱help
Try to setup Twenty on local
yes
25 replies
TTwenty
Created by Jérémy on 11/25/2024 in #❓︱help
Try to setup Twenty on local
i create my database with : psql postgres -c "CREATE DATABASE "default";" -c "CREATE DATABASE test;" -c "CREATE USER twenty PASSWORD 'twenty';" -c "ALTER ROLE twenty superuser;"
25 replies
TTwenty
Created by Jérémy on 11/25/2024 in #❓︱help
Try to setup Twenty on local
I have this error message Error during migration run: error: role "postgres" does not exist at Parser.parseErrorMessage (/Users/cap/Documents/www/twenty-main/node_modules/pg/node_modules/pg-protocol/src/parser.ts:369:69) at Parser.handlePacket (/Users/cap/Documents/www/twenty-main/node_modules/pg/node_modules/pg-protocol/src/parser.ts:188:21) at Parser.parse (/Users/cap/Documents/www/twenty-main/node_modules/pg/node_modules/pg-protocol/src/parser.ts:103:30) at Socket.<anonymous> (/Users/cap/Documents/www/twenty-main/node_modules/pg/node_modules/pg-protocol/src/index.ts:7:48) at Socket.emit (node:events:513:28) at Socket.emit (node:domain:489:12) at addChunk (node:internal/streams/readable:324:12) at readableAddChunk (node:internal/streams/readable:297:9) at Socket.Readable.push (node:internal/streams/readable:234:10) at TCP.onStreamRead (node:internal/stream_base_commons:190:23) { length: 100, severity: 'FATAL', code: '28000', detail: undefined, hint: undefined, position: undefined, internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, column: undefined, dataType: undefined, constraint: undefined, file: 'miscinit.c', line: '710', routine: 'InitializeSessionUserId' } Warning: command "ts-node ../../node_modules/typeorm/cli.js migration:run -d src/database/typeorm/metadata/metadata.datasource.ts" exited with non-zero status code ——————————————————————————————————————————————————————————————————————————————————————————————————————————————— NX Ran target typeorm for project twenty-server (1s) With additional flags: migration:run --d=src/database/typeorm/metadata/metadata.datasource.ts ✖ 1/1 failed ✔ 0/1 succeeded [0 read from cache]
25 replies
TTwenty
Created by Jérémy on 11/25/2024 in #❓︱help
Try to setup Twenty on local
I didn't properly understand your request earlier, I think. The previous errors appear when I run npx nx database:reset twenty-server How can I run this commands separately?
25 replies
TTwenty
Created by Jérémy on 11/25/2024 in #❓︱help
Try to setup Twenty on local
any idea @Weiko
25 replies
TTwenty
Created by Jérémy on 11/25/2024 in #❓︱help
Try to setup Twenty on local
Redis wasn't properly started, that was my mistake. Now, when I run the command npx nx database:reset twenty-server, I get the following errors: NX Ran target typeorm for project twenty-server (1s) With additional flags: migration:run --d=src/database/typeorm/metadata/metadata.datasource ✖ 1/1 failed ✔ 0/1 succeeded [0 read from cache] Warning: command "nx typeorm -- migration:run -d src/database/typeorm/metadata/metadata.datasource" exited with non-zero status code NX Ran target database:migrate for project twenty-server and 2 task(s) they depend on (2s) ✖ 1/3 failed ✔ 2/3 succeeded [2 read from cache] Warning: command "nx database:migrate" exited with non-zero status code NX Ran target database:reset for project twenty-server and 2 task(s) they depend on (33s) ✖ 1/3 failed ✔ 2/3 succeeded [2 read from cache] 😅
25 replies
TTwenty
Created by Jérémy on 11/25/2024 in #❓︱help
Try to setup Twenty on local
I unzipped Twenty. I already have PostgreSQL, so I simply created the database. I installed Redis using Brew (7.2.6). Then, I followed steps 5, 6, and 7 as explained.
25 replies