Code Monkey home page Code Monkey logo

hx-scripts's Introduction

发布脚本

介绍

博客项目,用户认证中心项目,nginx的镜像发布/拉取脚本

拉取博客项目/用户认证中心项目的镜像

如果不想自己生成镜像可以直接拉取我这边已经生成好的镜像

  • 1. 拉取客户端源代码,拉取该发布脚本代码
  • 2. 修改相应的配置

2.1、修改publish文件夹中.env文件里面的数据库,redis缓存的配置地址,改成自己的链接地址 输入图片说明

2.2、打开终端定位到发布脚本根目录,执行sh run.sh命令,选择命令1拉取发布,再次选择命令1拉取镜像服务,可以看到容器已经启动(请确保端口可用)

输入图片说明

构建博客项目/用户认证中心项目镜像

  • 1. 拉取api和客户端源代码
  • 2. 修改相应的配置,修改build文件夹中.env文件里面的数据库,redis缓存的配置地址,改成自己的链接地址
  • 3. 打开终端定位到发布脚本根目录,执行sh run.sh命令,选择命令0构建镜像,然后按步骤选择进行执行 输入图片说明

构建nginx镜像容器

如果服务器上未安装nginx,可以通过构建nginx容器来使用nginx服务

1、修改相应的nginx配置,和正常的nginx配置一样,修改构建镜像的卷的地址为自己的地址,这个地址会影响到nginx配置中的路径

输入图片说明

2、运行步骤和构建项目一样,选择nginx构建的编号,如下图 输入图片说明

hx-scripts's People

Contributors

songtaojie avatar

Watchers

 avatar

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.