Skip to content

Latest commit

 

History

History
61 lines (38 loc) · 1.65 KB

HOWTO_forks.md

File metadata and controls

61 lines (38 loc) · 1.65 KB

Branches and Forks

NUcore is usually deployed from a separate fork containing customized branding and functionality. In order to move changes between the commits you'll need to set up remote repositories on each side.

Bringing changes from Open into your fork

While in your fork's directory

You should only need to do these once:

git remote add upstream git@github.com:tablexi/nucore-open.git

Create a new branch with the name latest_from_open_YYYYMMDD (reflecting the current date).

Whenever you want to bring the latest changes from open/master into your branch:

git fetch upstream
git merge upstream/master

Push up your new branch, and run bin/merge_describer which generates a helpful description you can copy/paste into your PR; it contains the commit messages and links to the merged branches since the last merge from open.

Bringing changes on your fork into Open

While in nucore-open

For example, with the NU fork:

git remote add nu git@github.com:tablexi/nucore-nu.git

The best way to bring in the changes from NU is by cherry-picking the individual commits. For this reason, it's best to develop on open to start with, or to squash the commits in your branch so you only need to bring one commit.

git fetch nu
git cherry-pick XXXXX

Deploy

To staging:

From the root of your fork:

  • bundle exec cap [staging_name] deploy

Find staging_name by the name of the .rb files in config/deploy/[staging_name].rb

To confirm deploy was successful: In browser, go to staging and confirm new functionality is there

To production:

Merge develop into your master branch.

Then:

  • bundle exec cap [prod_name] deploy