mirror of
https://github.com/lobehub/lobehub
synced 2026-04-21 17:47:27 +00:00
* v2 init
* chore: update eslint suppressions and package dependencies
- Removed several eslint suppressions related to array sorting and reversing from eslint-suppressions.json to clean up the configuration.
- Updated @lobehub/lint package version from 2.0.0-beta.6 to 2.0.0-beta.7 in package.json for improvements and bug fixes.
- Made minor formatting adjustments in vitest.config.mts and various SKILL.md files for better readability and consistency.
Signed-off-by: Innei <tukon479@gmail.com>
* fix: clean up import statements and formatting
- Removed unnecessary whitespace in replaceComponentImports.ts for improved readability.
- Standardized import statements in contextEngineering.ts and createAgentExecutors.ts by adding missing spaces for consistency.
Signed-off-by: Innei <tukon479@gmail.com>
* chore: update eslint suppressions and clean up code formatting
* 🐛 fix: use vi.hoisted for mock variable initialization
Fix TDZ error in persona service test by using vi.hoisted() to ensure
mock variables are available when vi.mock factory runs.
---------
Signed-off-by: Innei <tukon479@gmail.com>
21 lines
664 B
Bash
21 lines
664 B
Bash
#!/bin/bash
|
|
|
|
# 停止并删除已存在的容器
|
|
docker stop postgres-paradedb 2> /dev/null && docker rm postgres-paradedb 2> /dev/null
|
|
|
|
# 启动pgvector容器
|
|
docker run --name postgres-paradedb \
|
|
-e POSTGRES_PASSWORD=mysecretpassword \
|
|
-e POSTGRES_DB=postgres \
|
|
-p 5432:5432 \
|
|
-d paradedb/paradedb:latest
|
|
|
|
# 等待PostgreSQL启动
|
|
echo "等待PostgreSQL完全启动..."
|
|
sleep 5
|
|
|
|
# 确保postgres用户存在且有适当权限
|
|
docker exec postgres-pgvector psql -U postgres -c "\du"
|
|
|
|
echo "✅ PostgreSQL with paradedb 已成功启动,并配置好了 postgres 用户"
|
|
echo "连接字符串: postgres://postgres:mysecretpassword@localhost:5432/postgres"
|