feat(deploy): 在同一台机器上接入继续教育和 Dify
4 核 8G 同时跑协会站点、PlayEdu 和估价智能体,并让门户专家页底色透出页面背景。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
1b33361209
commit
a8e2e741d1
24 files changed
+1035
-85
No files matched your search
Executable
+10
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
# 只在数据目录第一次初始化时执行。协会库和继续教育库共用这一台 MySQL。
|
||||
set -eu
|
||||
mysql --protocol=socket -uroot -p"${MYSQL_ROOT_PASSWORD}" <<SQL
|
||||
CREATE DATABASE IF NOT EXISTS playedu CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
CREATE USER IF NOT EXISTS 'playedu'@'%' IDENTIFIED BY '${PLAYEDU_DB_PASSWORD}';
|
||||
ALTER USER 'playedu'@'%' IDENTIFIED BY '${PLAYEDU_DB_PASSWORD}';
|
||||
GRANT ALL PRIVILEGES ON playedu.* TO 'playedu'@'%';
|
||||
FLUSH PRIVILEGES;
|
||||
SQL
|
||||
Reference in new issue
Block a user