feat: add cocker-compose yaml
This commit is contained in:
parent
bc96260ec8
commit
26fbe6756d
|
|
@ -18,7 +18,7 @@ except ImportError:
|
|||
project_root = Path(__file__).parent.parent
|
||||
class Settings(BaseSettings):
|
||||
"""Application settings with environment variable support."""
|
||||
db: str = "postgres://dcb93e55a36f8056ce4ddc37c4ddd46d717859834d9d7475a080f57c25a99067:sk_qN1plssQ5n2gKU4ZNNG0_@db.prisma.io:5432/?sslmode=require"
|
||||
db: str = "postgres://192.168.0.126:5433/mixvideo"
|
||||
# Application Info
|
||||
app_name: str = "MixVideo V2"
|
||||
app_version: str = "2.0.0"
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ PostgreSQL 驱动 psycopg2 未安装。请安装:
|
|||
self.table_name = "resource_categories"
|
||||
|
||||
# 初始化素材分类表
|
||||
# self._init_resource_category_table()
|
||||
self._init_resource_category_table()
|
||||
|
||||
@contextmanager
|
||||
def _get_connection(self):
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ PostgreSQL 驱动 psycopg2 未安装。请安装:
|
|||
self.table_name = "templates"
|
||||
|
||||
# 初始化模板表
|
||||
# self._init_template_table()
|
||||
self._init_template_table()
|
||||
|
||||
@contextmanager
|
||||
def _get_connection(self):
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ PostgreSQL 驱动 psycopg2 未安装。请安装:
|
|||
self.table_name = "users"
|
||||
|
||||
# 初始化用户表
|
||||
# self._init_user_table()
|
||||
self._init_user_table()
|
||||
|
||||
@contextmanager
|
||||
def _get_connection(self):
|
||||
|
|
|
|||
Loading…
Reference in New Issue