- web页面中入群的描述内容(文字)
- 用户入群前的回复内容(文字)
- 新用户首次入群的回复内容(文字)
- 管理员列表
- 提供
client_id/session_id/private_key/client_secret/pin_token - 导出
users.sql和block.sql两个表描述: users.sql 需要包含字段及顺序如下:
user_id | access_token | subscribed_at | active_at
block.sql 只需要包含字段 user_id 即可
- 如果要开启社群持仓发言的话, 需要提供 对应的三个档的数量要求,以及
asset_id或不指定默认美元校验。
-- 导出 users.sql 表
create table tmp_view as select user_id,access_token,subscribed_at,active_at from users;
copy tmp_view to '/tmp/users.sql' with delimiter as '|';
drop table tmp_view;
-- 导出 block.sql 表
create table tmp_view as select user_id from blacklists;
copy tmp_view to '/tmp/block.sql' with delimiter as '|';
drop table tmp_view;如果是远程的 psql 数据库
# 导出 users.sql 表
psql dbname -h hostname -U username -c "create table tmp_view as select user_id,access_token,subscribed_at,active_at from users;copy tmp_view to stdout with delimiter as '|';drop table tmp_view;" > users.sql
# 导出 block.sql 表
psql dbname -h hostname -U username -c "create table tmp_view as select user_id from blacklists;copy tmp_view to stdout with delimiter as '|';drop table tmp_view;" > block.sql- home_url 和 auth_url
- 根据 部署文档,将 home_url 和 api_url 添加入 nginx ,并开启 ssl。
- 填充好
client.json - 将
client.json/users.sql/block.sql放入supergroup同一目录下 - 运行
./supergroup -service migration如果是开启了持仓检测的话,由于 exin 查询资产 api 的限制,每 10s 导入 100 个用户。过程可能相对比较慢。
- 在要部署的服务器的
config.json中添加client_id - 在
http的服务中config.json,添加show_client_list(如果有必要的话)
- 所有者更换
homeURL/authURL - 所有者停止社群的消息服务
- 所有者通知部署者已经完成上述操作
- 部署者 运行
restart httprestart blaze/create_message/distribute_message
- 准备
第一阶段的信息 - 等待
社群部署者的通知 - 接收通知后,更换
homeURL/authURL并停止社群的消息服务 - 完成第三步后通知
社群部署者 - 完成