dtable node server
在配置文件路径下,添加相关配置项(dtable_web_service_url是dtable web启动的url,注意端口号)
{
"host": "db",
"user": "root",
"password": "db_dev",
"database": "seahub",
"port": 3306,
"connection_limit": 10,
"private_key": "M@O8VWUb81YvmtWLHGB2I_V7di5-@0p(MF*GrE!sIws23F$C",
"dtable_web_service_url": "http://127.0.0.1:8000/"
}
git pull origin master
获取最新分支npm run build
打包项目export DTABLE_SERVER_CONFIG='**/**.json' && node dist/src/index.js
启动dtable-server服务
- 在根目录下创建config文件夹
- 在config文件夹下创建config.json 文件,添加配置如下
{
"host": "127.0.0.1",
"user": "root",
"password": "db_dev",
"database": "dtable",
"port": 3306,
"private_key": "M@O8VWUb81YvmtWLHGB2I_V7di5-@0p(MF*GrE!sIws23F",
"dtable_web_service_url": "http://127.0.0.1:8000/",
"redis_host": "redis",
"redis_port": 6379,
"redis_password": ""
}
- 运行
npm run test-api