Code Monkey home page Code Monkey logo

vue's Introduction

vue

使用docker-compose部署vue

使用

  1. 在linux服务器上安装docker和docker-compose,windows上安装docker需要升级到专业版以上, mac上可以使用homebrew命令直接安装brew cask install docker
  2. 安装git
  3. clone项目
git clone https://[email protected]/qbanxiaoli/vue.git 
  1. 进入vue目录
 cd vue
  1. 编译vue项目,生成dist文件夹
npm run build
  1. 执行docker-compose命令构建镜像
docker-compose build
  1. 执行docker-compose命令后台启动容器
docker-compose up -d
  1. 测试vue项目是否部署成功,通过ip+宿主机的映射端口进行访问, 可以将镜像直接推送到阿里云镜像仓库,再到服务器上拉去镜像后部署, 通过jenkins+docker实现容器的自动化部署

vue's People

Contributors

qbanxiaoli avatar

Watchers

James Cloos 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.