While setting up project following readme file under Run example app. when run this
cabal run wasp-cli db migrate-dev
cabal run wasp-cli db migrate-dev
I get this error
:x: --- [Error] Can not connect to database: ------------ The database needs to be running in order to execute this command. You can easily start a managed dev database with `wasp start db`.
:x: --- [Error] Can not connect to database: ------------ The database needs to be running in order to execute this command. You can easily start a managed dev database with `wasp start db`.
after running
cabal run wasp-cli start db
cabal run wasp-cli start db
db get running.
but when again when i run
cabal run wasp-cli db migrate-dev
cabal run wasp-cli db migrate-dev
this command it gives me this error
$ cabal run wasp-cli db migrate-devUp to date🐝 --- Compiling wasp project... --------------🐝 --- Setting up database... ----------------[Db] [-] Removed tables[Db] - User[Db] - SocialLogin[Db] - Task[Db] [Db] [*] Changed the `SocialLogin` table[Db] [-] Removed foreign key on columns (userId)[Db] [Db] [*] Changed the `Task` table[Db] [-] Removed foreign key on columns (userId)✅ --- Database successfully set up. ------------------ ✅ --- Your wasp project has successfully compiled. --------------- 🐝 --- Starting database migration... -------------------zsh:1: no such file or directory: /media/naruto/New ❌ --- [Error] Migrate dev failed: -------------------------- Migrate (dev) failed with exit code: 127
$ cabal run wasp-cli db migrate-devUp to date🐝 --- Compiling wasp project... --------------🐝 --- Setting up database... ----------------[Db] [-] Removed tables[Db] - User[Db] - SocialLogin[Db] - Task[Db] [Db] [*] Changed the `SocialLogin` table[Db] [-] Removed foreign key on columns (userId)[Db] [Db] [*] Changed the `Task` table[Db] [-] Removed foreign key on columns (userId)✅ --- Database successfully set up. ------------------ ✅ --- Your wasp project has successfully compiled. --------------- 🐝 --- Starting database migration... -------------------zsh:1: no such file or directory: /media/naruto/New ❌ --- [Error] Migrate dev failed: -------------------------- Migrate (dev) failed with exit code: 127
Don't know where is the issue in project or with docker or something else. But looking at the file directory path in the error it is not correct. Path of the Project is