Skip to content

Commit

Permalink
Fixup GH Pages deploy instructions
Browse files Browse the repository at this point in the history
These work regardless of whether you already have a gh-pages branch.
  • Loading branch information
gaearon committed Jul 27, 2016
1 parent f97b1bb commit 1740fa9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@ webpack(config).run(function(err, stats) {
console.log('You can now deploy it to ' + homepagePath + '.');
console.log('For example, if you use GitHub Pages:');
console.log();
console.log(' git commit -am "Save local changes"');
console.log(' git checkout -B gh-pages');
console.log(' git add -f build');
console.log(' git commit -am "Rebuild website"');
console.log(' git push origin :gh-pages');
console.log(' git subtree push --prefix build origin gh-pages');
console.log(' git filter-branch -f --prune-empty --subdirectory-filter build');
console.log(' git push -f origin gh-pages');
console.log(' git checkout -');
console.log();
} else {
Expand Down

0 comments on commit 1740fa9

Please sign in to comment.