Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/dumparkltd/tsunami-db
Browse files Browse the repository at this point in the history
  • Loading branch information
tmfrnz committed May 9, 2017
2 parents 9cc12aa + 63da728 commit 99ef9b5
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,34 @@ https://github.com/dumparkltd/tsunami-db/labels
Issues can be assigned to milestones that you can find here

https://github.com/dumparkltd/tsunami-db/milestones

--

### Deploy
#### Optimise and bundle
Optimisation and bundling is done using requirejs optimizer (see http://requirejs.org/docs/optimization.html for installing requirejs). Once installed, run from the repository root (branch master or whatever branch/tag you are seeking to deploy)
`r.js -o app/app.build.js`
This will generate all files inside a `/build` folder within the repository (you can changet the target directory here: https://github.com/dumparkltd/tsunami-db/blob/master/app/app.build.js#L4)

The content of the build folder can now be deployed to any webhost or commited to gh-pages (see below)

#### Commit to gh-pages branch
Unfortunately there is no automated deploy script in place to deploy to GitHub pages.
To do so manually, follow these steps

Option A (recommended):
_assuming you have cloned the repository twice, once for the source branch (master, etc) and once for the target branch (gh-pages)_
1. delete content of target branch
2. copy content of build folder to target branch
3. commit changes (`git add --all`, `git commit -m 'update message'`)
4. publish changes to target/gh-pages branch (`git push origin gh-pages` or to force `git push -f origin gh-pages:gh-pages`)

Option B
_assuming you have cloned the repository only once_
1. copy content of build folder to a folder outside the repository
2. switch to target branch (`git checkout gh-pages`)
3. delete content of target branch
4. copy content of folder outside repository to target branch
5. commit changes (`git add --all`, `git commit -m 'update message'`)
6. publish changes to target/gh-pages branch (`git push origin gh-pages` or to force `git push -f origin gh-pages:gh-pages`)

0 comments on commit 99ef9b5

Please sign in to comment.