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.
8 Replies
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
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
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?)
yes my local postgres service was running.Thanks a lot .Will update if any more issues occur.Thanks again
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.
Could you check what this NODE ENV version is ?
Either from your .env file or from running "env" in your terminal
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
great!