Giter VIP home page Giter VIP logo

wokugame's Introduction

Build Status

环境依赖

  • nodejs v7.3
  • yarn
  • docker
  • docker-compose

本地开发

安装项目依赖

yarn

启动本地依赖服务

docker-compose --file docker-compose.dev.yml up -d --build

预编译

npm run start-before

开发模式

npm start

作用:

  • 监听本地 8080 端口
  • hot loader

提交

git push

作用:

  • travis 测试
  • travis 编译并把产出提交到 built 分支
  • push 触发 github webhook
  • app 部署端收到 webhook,更新产出并重启应用

本地生产环境

生产模式构建

npm run production

生产模式服务启动

npm run server-production

服务器部署

只需要部署一次 除非部署脚本(/deploy)有修改。

部署后,每次 built 分支的提交都会更新应用代码,并重启应用服务。

拉取产出分支代码

git clone https://github.com/ascoders/wokugame.git -b built --depth=1

启动数据库等依赖程序

docker-compose up -d --build

停止服务

docker-compose down --remove-orphans

wokugame's People

Contributors

ascoders avatar

Watchers

 avatar  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.