mirror of
https://github.com/lobehub/lobehub.git
synced 2026-03-28 13:39:28 +07:00
* remove NEXT_PUBLIC_SERVICE_MODE * update * fix tests * update e2e workflow * update config * Rename DATABASE_TEST_URL to DATABASE_URL
31 lines
1.0 KiB
JavaScript
31 lines
1.0 KiB
JavaScript
const PGVECTOR_HINT = `⚠️ Database migrate failed due to \`pgvector\` extension not found. Please install the \`pgvector\` extension on your postgres instance.
|
|
|
|
1) if you are using docker postgres image:
|
|
you can just use \`pgvector/pgvector:pg16\` image instead of \`postgres\`, e.g:
|
|
|
|
\`\`\`
|
|
docker run -p 5432:5432 -d --name pg -e POSTGRES_PASSWORD=mysecretpassword pgvector/pgvector:pg16
|
|
\`\`\`
|
|
|
|
2) if you are using cloud postgres instance, please contact your cloud provider for help.
|
|
|
|
if you have any other question, please open issue here: https://github.com/lobehub/lobe-chat/issues
|
|
`;
|
|
|
|
const DB_FAIL_INIT_HINT = `------------------------------------------------------------------------------------------
|
|
⚠️ Database migrate failed due to not find the db instance.
|
|
|
|
if you are using docker postgres image, you may need to set DATABASE_DRIVER to node
|
|
|
|
\`\`\`
|
|
DATABASE_DRIVER=node
|
|
\`\`\`
|
|
|
|
if you have any other question, please open issue here: https://github.com/lobehub/lobe-chat/issues
|
|
`;
|
|
|
|
module.exports = {
|
|
DB_FAIL_INIT_HINT,
|
|
PGVECTOR_HINT,
|
|
};
|