backends
backends copied to clipboard
yarn migrate:db:import fails with exit code 1
Bug Report
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.
You can find the full output of yarn dev:setup here: https://pastebin.com/eMd2uHtW
Expected Results
yarn dev:setup should run through.
Environment
- Node/yarn version: Node v14.18.1/yarn 1.22.17
- OS: Arch Linux, Kernel 5.15.5
I generally haven't reported that many bugs yet. Sorry if this report was not so understandable.
@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.js requires either a URL provided as an argument or falls back to environment variable DATABASE_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.
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
@antoinet Thanks. We're about to release https://github.com/republik/plattform and I'll make sure yarn dev:setup will run smoothly.