Skip to content

Instantly share code, notes, and snippets.

@GA-MEB
Last active April 19, 2016 00:00
Show Gist options
  • Save GA-MEB/b0ca9eb9e8ccccae421666984bd83548 to your computer and use it in GitHub Desktop.
Save GA-MEB/b0ca9eb9e8ccccae421666984bd83548 to your computer and use it in GitHub Desktop.

Deploying Ember Apps based on the Ember Template to Github Pages

  1. Make sure that everything is named consistently (i.e. ember-template -> ember-deployment-example)
  2. If you haven't already, run npm install and bower install
  3. Update config/environment.js as follows:
if (environment === 'production') {
  ENV.baseURL = '/ember-deployment-example/';
  ENV.locationType = 'hash';
}
  1. Create a gh-pages branch locally and check it out.
  2. Remove dist from .gitignore and commit.
  3. Run ember build --environment=production, add dist, and commit.
  4. Use "subtree push" to create a new gh-pages branch on GitHub composed only of the dist directory. (Taken from https://gist.github.com/cobyism/4730490)
git subtree push --prefix dist origin gh-pages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment