This README outlines the details of collaborating on this Ember application. A short introduction of this app could easily go here.
You will need the following things properly installed on your computer.
- Git
- Node.js (with npm)
- Ember CLI
- Google Chrome
git clone <repository-url>
this repositorycd coc-docs
npm install
ember serve
- Visit your app at http://localhost:4200/coc-docs/.
- Visit your tests at http://localhost:4200/coc-docs/tests.
Make use of the many generators for code, try ember help generate
for more details
ember test
ember test --server
ember build
(development)ember build --environment production
(production)
Currently the app is deployed to github pages, follow steps:
- Commit changes in development branch, check out master, rebase with develoment branch.
- Delete the exising gh-pages, and checkout new branch with same name from master. gh-pages is a special branch that github used to deploy static website.
- Run
ember build --environment=production
, this will build app in production environment, the build result is under/dist
. - Run
cp -R dist/* ./
. - Add and commit change:
git add . && git commit -m 'deploy'
. - Push to github:
git push --set-upstream origin gh-pages --force
.