T
Twenty2w 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
charles2w 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
VinodOP2w 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
charles5d 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
VinodOP5d ago
yes my local postgres service was running.Thanks a lot .Will update if any more issues occur.Thanks again
Vinod
VinodOP4d 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
charles4d ago
Could you check what this NODE ENV version is ? Either from your .env file or from running "env" in your terminal
Vinod
VinodOP4d 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
charles4d ago
great!
Want results from more Discord servers?
Add your server