I want to incorporate Ghost to my Express app. So I tried following this tutorial, which I'm not sure if it is up-to-date still.
However, after following up all of them and tried to run npm init
, I got an error instructing me to run knex-migrator init first.
However, I don't know what to write in the knex-migrator. Its documentation is sparse and I even don't know what to write in the configuration file.
I don't have my database to migrate into the app. I just want to start the blog from scratch.
So specifically, what do I have to write in the field of the configuration, especially at migrationPath
and filename
? When I tried to create a directory to match the path and run knex-migrator init
, it said my migration path is wrong. But I don't know what the correct migration path points to...