therewillbecode / poker-maison

🂺 A Multiplayer Poker App Crafted with Haskell and React
308 stars 34 forks source link

cd server && stack run gives error #19

Closed tuuguu21 closed 3 years ago

tuuguu21 commented 4 years ago

tuguldur@tuguldur-Inspiron-3537:~/Downloads/poker-maison-master/server$ stack run poker-server-exe: Missing dbConnStr in env CallStack (from HasCallStack): error, called at src/Env.hs:46:18 in poker-server-0.1.0.0-1noFjA1fxcLE6B4gEAhgPz:Env

therewillbecode commented 3 years ago

Look like you need to run the command with the correct env variable set with the database connection string for Postgres.

dbConnStr='host=0.0.0.0 port=5432 user=tuguu21 dbname=pokerdb password=pass' stack run

Of course make sure you create the database and update the string with the parameters.