You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 6, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 6, 2022. It is now read-only.
yarn migrate:db:import fails with exit code 1 #688
Hi, I just wanted to play with Publikator on my local machine. I tried to install the backend, but unfortunately an error occurred. I followed the instructions in the readme and at yarn dev:setup (or yarn migrate:db:import) the following error occurred:
Invalid URL: undefined
error Command failed with exit code 1.
Steps to Reproduce
Do steps 1 to 4 from the readme on a local Linux computer.
Actual Results
It looks like the script packages/migrations/script/db/import.js cannot find a database.
I'm also stuck on this one. @kuhlenbrecht I managed to disable the db import by removing the corresponding yarn migrate:db:import command from package.json
Activity
pae-blue commentedon Jan 31, 2022
@kuhlenbrecht Please excuse the very late response. It slipped my notifications.
Report is excellent, thank you. I can confirm, this is a bug, indeed.
packages/migrations/script/db/import.jsrequires either a URL provided as an argument or falls back to environment variableDATABASE_SAMPLE_DATA_URL.We're in the process of moving to a mono-repo – just gosh darn simpler to run and develop – and will address it there.
antoinet commentedon Jan 31, 2022
I'm also stuck on this one. @kuhlenbrecht I managed to disable the db import by removing the corresponding
yarn migrate:db:importcommand from package.jsonpae-blue commentedon Feb 1, 2022
@antoinet Thanks. We're about to release https://github.com/republik/plattform and I'll make sure
yarn dev:setupwill run smoothly.