Git Product home page Git Product logo

engine's Introduction

Rails Engine 组件

新增一个组件

  1. 在 .gitmodules 加入配置信息,如:
[submodule "rails_xxx"]
  path = rails_xxx
  url = [email protected]:work-design/rails_xxx.git
  1. git submodule init rails_xxx
  2. git submodule update rails_xxx
  3. 进入 rails_xxx, 执行 git checkout master

使用

更新子模块(engine)

  • 第一次初始化项目
git submodule update --init
  • 后续更新项目
git pull
git submodule update --rebase(或--merge) 
  • 更新每个engine(子项目)
git submodule update --init --recursive
git submodule update --rebase --recursive

engine 加载顺序

在gemfile靠后的engine的model常量会先加载;

engine's People

Contributors

lewislinlin avatar qinmingyuan avatar quakex 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.