DTCloud开源社区模块介绍说明

模块介绍

DTCloud开发者社区,赋能开发者,共建企业应用市场。

DTCloud开源社区模块,即dt_open_source_community ,为本地开发者,登陆开发者社区,购买应用提供了便利。

启动流程

1 启动 DTCloud项目时启动Golang服务

command.py 文件下:

    if command in commands:
        # Go init
        from go.dtcloud import init_golang
        init_golang()

        # Python init
        o = commands[command]()
        o.run(args)
    else:
        sys.exit('Unknown command %r' % (command,))

2 判断所属平台(windows或ubuntu),根据所属系统,调用不同程序

根目录下: /go/dtcloud.py

# coding = utf-8
import sys
import dtcloud
import os
import signal
import json
import subprocess


def init_golang():
    # 开源市场
    open_community_service()


class open_community_service(object):
	pass

3 开源社区相关golang程序

模块:dt_open_source_community

windows环境下:

git clone -b windows https://gitee.com/dtcloud360/dt_open_source_community.git

ubuntu环境下:

git clone -b ubuntu https://gitee.com/dtcloud360/dt_open_source_community.git

下载后,将模块 dt_open_source_community 放入 appstore目录下即可。

注意事项

  1. 从gitee上下载的 dtcloud, 有时 appstore目录下的 dt_open_source_community 模块,并不对应相应的系统。注意删除,然后按上面步骤重新下载。
  2. dtcloud配置文件 dtcloud.conf中,local_address_go = 127.0.0.1:9090 ,注意防止端口冲突。
posted @ 2023-02-07 09:33  中亿丰数字科技  阅读(101)  评论(0)    收藏  举报