GithubHelp home page GithubHelp logo

covid-manage-admin's Introduction

克隆整个项项目

git clone --recursive [email protected]:sxjhome/private-education.git

将所有子模块都切到master分支

git submodule foreach git checkout master

GIT 添加子模块

git submodule add git add . git commit -m "add submodule" git push

项目启动

需要在开发工具中添加参数 program arguments --spring.profiles.active=dev 然后直接运行 Application 中的 main 方法即可

切换远程仓库地址

git remote set-url origin SRV_URL cd tob-common git remote set-url origin [email protected]:Sacher/thinker-common.git 修改 .gitmodules 文件 [submodule "thinker-common"] path = thinker-common url = [email protected]:Sacher/thinker-common.git

依赖注入注解(更偏重使用 @Inject)

@Inject 这是jsr330规范的实现, @Resource 是jsr250的实现,这是多年前的规范, @Autowired 是spring的实现,如果不用spring一般用不上这个

项目打包
参数: BRANCH 需要打包的GIT分支,默认值:master

build.sh $JAR_NAME $dockerN $BANCH $ENV
注意:项目打包时 GIT 用户必须可以克隆 education-serve 和 thinker-common 两个项目的权限
Docker运行项目(HOST:PORT 是镜像仓库地址)
(可选)参数: JAR_URL  JAR的下载路径, 如果不传这个参数请确保最新JAR已经存放在本地挂载目录$HOST_VOLUME中  
      注意: $HOST_VOLUME目录最后的子目录名为 $JAR_NAME 
  更多可选参数请参考: thinker-common/spring-boot-dok/README.md

删除之前启动的服务
docker  rm -f $DOCKER_NAME

创建需要挂载的目录, 目录以 education-serve 结尾
mkdir -p /data/download/jars/${BRANCH}/${JAR_NAME}

docker run -d --restart always \
       --net=host  \
       -v /data/deploys/${jarN}:/mnt/${jarN} \
       --name=${dockerN} \
       -e JAR_NAME=${JAR_NAME} \
       -e JAR_ENV=${jar_env} \
       sacher/spring-boot:test
服务检测地址
    /actuator/health

covid-manage-admin's People

Contributors

sacherer avatar

Stargazers

James Zow avatar

Forkers

cckmit

covid-manage-admin's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.