Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Meta
create-react-app
Commits
1740fa99
Commit
1740fa99
authored
8 years ago
by
Dan Abramov
Browse files
Options
Download
Email Patches
Plain Diff
Fixup GH Pages deploy instructions
These work regardless of whether you already have a gh-pages branch.
parent
f97b1bb0
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/build.js
+3
-2
scripts/build.js
with
3 additions
and
2 deletions
+3
-2
scripts/build.js
+
3
-
2
View file @
1740fa99
...
...
@@ -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
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets