-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remote js css files disappeared after hexo d
or git push [strange .gitignore bug with macOS: deploy can't work correctly]
#37
Comments
i have tried with Next 5.x version, also can not render correctly. |
Try to use |
Ok, i'll check it later. It's really strange because basic libs (like velocity) must deployed anyway. |
@maple3142 |
I think your deployment command is not correct: # Deployment
## Docs: https://hexo.io/docs/deployment.html
deploy:
type: git
repo: git@github.com:MARGI3/margi3.github.io.git
branch: master Try this: # Deployment
## Docs: https://hexo.io/docs/deployment.html
deploy:
type: git
repo: https://github.com/your-name/repo-name.git
branch: gh-pages
message: "Updated: {{ now('YYYY-MM-DD HH:mm:ss') }}"
name: your-name
email: your-mail@gmail.com |
i have changed the
and then i delete the content of root
still not work |
i also have tried your resolver delete content of delete content of
copy the content of
then still not work |
Try to reproduce this steps:
|
CONSOLE
SETTINGset root
github default branch setting RESULTstill not work Local FilesCAUSE?i have got some warning
is that was the cause? |
try |
It's strange. Font-Awesome is deploy, but other 3 libs not deployed, but they was generated. @MARGI3 ok, try to edit .DS_Store
.idea/
*.log
*.iml
yarn.lock
package-lock.json
node_modules/
# Ignore optional external libraries
source/lib/*
# Track internal libraries & Ignore unused verdors files
source/lib/font-awesome/less/
source/lib/font-awesome/scss/
!source/lib/font-awesome/*
-!source/lib/jquery/
+!source/lib/jquery/*
source/lib/ua-parser-js/
-!source/lib/ua-parser-js/dist/
+!source/lib/ua-parser-js/dist/*
-!source/lib/velocity/
+!source/lib/velocity/* |
I use my another computer (Mac mini), do the same operation, then success! So, I think it must be my computer npm/node/hexo configuration difference lead to the WRONG result. another computer console output like below and the process is no CONSOLE
VERSION
RESOLVERIs there any official tutorial to reinstall node js, npm, hexo ? maybe it can help me. |
Your previous version of node was v8.9.4, current is v6.3.1 as i see. U can try to install NVM and play around with switch versions of node. NVM
|
Ok, when I back to home, I will try this. Thanks! |
still not work here are the two computer config Mac mini (result success)nvm list
npm config
hexo -v
MacbookPro (result failed)nvm list
npm config
hexo v
|
Please, don't need post too long logs, i can't to find previous messages. Try to reproduce steps above. |
i have followed the step, but still not work. |
@MARGI3 what's your git version on each device?
|
@ivan-nginx both 2.10.1 |
@MARGI3 can u IN SHORT WORDS give configuration from 1 and 2 device? All possible versions of soft (from OS to Node) and, especially, try to say about difference and in what mean be trouble as u think (for example, fsevents or what kind of errors u see)? DONT NEED TO SHOW LONG LOGS please. Just short: Device 1 (REPRODUCE STEPS ABOVE SUCCESS):
Device 2 (REPRODUCE STEPS ABOVE ERROR):
|
I see only difference for now: all This files never ignored by NexT I also not see I'm not sure, but maybe something like AV of Firewall blocked your all JS files when u deploy it. Anyway, it's not NexT bug, a fortiori u see what in another device reproduce steps are work fine. |
Device 1 (REPRODUCE STEPS ABOVE SUCCESS):
Device 2 (REPRODUCE STEPS ABOVE ERROR):
|
Any AV? Something which cause block javascript? |
I had tried material theme , got the same problem. I was really confused with it . |
I just want to got the reason. As you mentioned it may be the OS problem , but i just want to resolver the problem , so first i should know the reason. |
Check all possible AV/Firewalls. Hosts files, etc. U just need to filter your bug. If bug in Git — check only Git with all possible tools. |
hexo d
or git push hexo d
or git push [strange bug with MacbookPro: deploy can't work correctly]
@MARGI3 so at least, did you resolve this problem? recently i have same problem with you. |
@RecherJ I resolve this problem, but maybe not work for you. I downgrade my macbookpro system version from 10.13 to 10.12. Then do the same step to publish, everything runs smoothly. so, although the problem was resolved, i still don't know the reason. |
@MARGI3 hi, recently i fixed this problem by using |
REALLY?I tried git add -f xxx/but failed |
@Henryyichao |
Or delete git directory before It's really strange bug which wasn't solved to this day. |
解决了! #636 macOS 之前的git忽略文件包含lib,删掉就好
|
hexo d
or git push [strange bug with MacbookPro: deploy can't work correctly]hexo d
or git push [strange bug with MacbookPro: deploy can't work correctly]
谢谢各位,有关macOS上 |
hexo d
or git push [strange bug with MacbookPro: deploy can't work correctly]hexo d
or git push [strange .gitignore bug with macOS: deploy can't work correctly]
I agree and want to create new issue
Expected behavior
page reder correctly
Actual behavior
css file , js file not found (404)
Steps to reproduce the behavior
mkdir github_page
cd github_page
hexo init
git clone https://github.com/theme-next/hexo-theme-next themes/next
cd themes/next
git tag -l
//v6.0.0
//v6.0.1
git checkout tags/v6.0.1
//commit id da9cdd2
then back to
github_page
folderopen root
_config.yml
fileconfig theme and deploy
hexo g
npm install hexo-deployer-git --save
//+ hexo-deployer-git@0.3.1
//added 16 packages in 4.365s
hexo d
these all my steps
Node.js and NPM Information
Package dependencies Information
Hexo Information
Hexo version
Hexo Configuration
NexT Information
NexT Version:
NexT Scheme:
NexT Configuration:
Other Information
public
files.deploy_git
fileshexo s
hexo d
, or push to the github remoteSummary
i know the causes which lead to the page render error (files not exist), but i was really confused that why these files can not push to the remote.
local files are generated correctly , but when i push to github fews files seems like are rejected by the github
The text was updated successfully, but these errors were encountered: