gh-pages
gh-pages copied to clipboard
gh-pages doesn't do anything
I'm executing npm run deploy in the root of my git repository. The deploy script is defined as "gh-pages --dist build" inside package.json. Running the command results in this output:
Running gh-pages in JavaScript produced the same output.
Directory structure:
README.md
build
id
test.html
woah.css
gulpfile.js
package-lock.json
package.json
src
id
test.html
woah.css
👀
@SpectralKH have you tried running with the DEBUG option on? https://github.com/tschaub/gh-pages#debugging
I'm getting this as well. At appears to have happened since I upgraded to Node version 11.0.0. Here's some of my testing below. I will try downgrading to 10.13.0 LTS and see if that makes any difference.
D:\Git\osvc-links
> node --version
v11.0.0
D:\Git\osvc-links
> set NODE_DEBUG=net,gh-pages
D:\Git\osvc-links
> echo %NODE_DEBUG%
net,gh-pages
D:\Git\osvc-links
> npm run deploy
> [email protected] predeploy D:\Git\osvc-links
> npm run build
> [email protected] build D:\Git\osvc-links
> react-scripts build
Creating an optimized production build...
Compiled with warnings.
./src/Resources.js
Line 55: The href attribute requires a valid address. Provide a valid, navigable address as the href value jsx-a11y/anchor-is-valid
Line 55: Script URL is a form of eval no-script-url
Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.
File sizes after gzip:
32.53 KB build\static\js\1.0ed20741.chunk.js
3.41 KB build\static\js\main.7f03dfa2.chunk.js
771 B build\static\js\runtime~main.733bada6.js
583 B build\static\css\main.33ed7a64.chunk.css
The project was built assuming it is hosted at /osvc-links/.
You can control this with the homepage field in your package.json.
The build folder is ready to be deployed.
To publish it at http://danstevens.github.io/osvc-links, run:
npm run deploy
Find out more about deployment here:
http://bit.ly/CRA-deploy
> [email protected] deploy D:\Git\osvc-links
> gh-pages -d build -r https://github.com/DanStevens/osvc-links.git
NET 4824: _read
NET 4824: Socket._read readStart
NET 4824: _read
NET 4824: Socket._read readStart
NET 4824: _read
NET 4824: Socket._read readStart
NET 4824: _read
NET 4824: Socket._read readStart
NET 4824: destroy
NET 4824: close
NET 4824: close handle
NET 4824: emit close
NET 4824: destroy
NET 4824: close
NET 4824: close handle
NET 4824: destroy
NET 4824: close
NET 4824: close handle
NET 4824: emit close
NET 4824: emit close
GH-PAGES 4824: Cloning https://github.com/DanStevens/osvc-links.git into node_modules\gh-pages\.cache\github.com!DanStevens!osvc-links.git
NET 4824: _read
NET 4824: Socket._read readStart
NET 4824: _read
NET 4824: Socket._read readStart
NET 4824: destroy
NET 4824: close
NET 4824: close handle
NET 4824: destroy
NET 4824: close
NET 4824: close handle
NET 4824: destroy
NET 4824: close
NET 4824: close handle
NET 4824: emit close
NET 4824: emit close
NET 4824: emit close
NET 4824: _read
It's working again after I downgraded node to version 10.13.0
@SpectralKH 你试过使用DEBUG选项吗? https://github.com/tschaub/gh-pages#debugging
I did, but it didn't work