T
Twenty2mo ago
Vinod

Need help with Local Setup

I'm getting following error while setting up database command:npx nx database:reset twenty-server p.s: I'm using docker and i've checked that both postgres and redis are running on docker containers.
No description
8 Replies
charles
charles2mo ago
Hi @Vinod, you are looking to contribute right (development setup) ? Could you show me your docker-compose / docker configuraiton for your postgres, it's likely that there is something wrong with the users
Vinod
VinodOP2mo ago
hi @charles ,thanks for replying .Yes indeed i' m looking to contribute in my spare time. I was following the docs for setup . I have confirmed that my postgres db does have the user 'twenty' with corrrect password.P.S:Sorry for delayed response
No description
charles
charles2mo ago
if you take what you have in your .env (PG_DATABASE_URL) and try to use it thourgh "psql" does it work? ex: psql postgres://xxx:xxx@localhost:5432/twenty your db seems to be fine indeed. Are you sure you don't have two dbs? (one in docker, the other on your host for instance?)
Vinod
VinodOP2mo ago
yes my local postgres service was running.Thanks a lot .Will update if any more issues occur.Thanks again
Vinod
VinodOP2mo ago
hey @charles I've encountered another problem when i executed the command to start the server i.e :npx nx start twenty-server which throws an error related to environment variable.
No description
charles
charles2mo ago
Could you check what this NODE ENV version is ? Either from your .env file or from running "env" in your terminal
Vinod
VinodOP2mo ago
The NODE_ENV value is: development. There's a blank character at the start of word development.Currently searching for the source Issue resolved ,it was windows specific problem
charles
charles2mo ago
great!
Want results from more Discord servers?
Add your server