Skip to content
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

Detect Changes - Bug in Windows Ruby on Rails Console #55

Open
Romiko opened this issue Jul 22, 2013 · 5 comments
Open

Detect Changes - Bug in Windows Ruby on Rails Console #55

Romiko opened this issue Jul 22, 2013 · 5 comments

Comments

@Romiko
Copy link

Romiko commented Jul 22, 2013

Hi,

I am accessing the same folder used by Mac and have a Windows VM. In Windows when I run Jekyll-s3 it is always detected the same files changed when they have not changed.

MAC OUTPUT for same folder:
Deploying _site/* to blog.xxx.com
No new or changed files to upload
Done! Go visit: http://blog.xxx.com.s3-website-us-east-1.amazonaws.com/index.html

WIndows Ruby on Rails Console Output:
Y:\dev\xx\xxxBlog>jekyll-s3
Deploying _site/* to blog.xxx.com
Uploading 2 changed file(s)
Upload media/2013-07-11/2.jpg: Success!
Upload media/2013-07-11/1.jpg: Success!
Done! Go visit: http://blog.xxx.com.s3-website-us-east-1.amazonaws.com/index.html

Now, I am running Jekyll-s3 over a satellite link, and need minimum delta's to be uploaded, unfortunately my sattelite phone needs windows to run the modem as their is no Linux drivers (ISAT PRO), hence I run Jekyll-s3 from windows ROR console.

Any ideas why on windows it detects the files as always changed?

@Romiko
Copy link
Author

Romiko commented Jul 22, 2013

Hi, I found a way to get my sattelite phone working on MAC. However, is it possible you guys can optimise the Jekyll-s3 command to use the absolute minimum when uploaded or posting a new blog?

@laurilehmijoki
Copy link
Owner

It might be possible to reduce the network usage of jekyll-s3 even further.

If you are interested in this topic, please submit a pull request to the gem s3_website. I don't develop the gem jekyll-s3 anymore.

@laurilehmijoki
Copy link
Owner

You can easily switch to s3_website. It is mostly backward compatible with jekyll-s3.

@Romiko
Copy link
Author

Romiko commented Jul 22, 2013

Awesome, thanks I have switched to s3_website :) However in windows it has
the same behaviour and always detects jpg files as changes.

On Mon, Jul 22, 2013 at 11:35 PM, Lauri Lehmijoki
notifications@github.comwrote:

You can easily switch to s3_website. It is mostly backward compatible with
jekyll-s3.


Reply to this email directly or view it on GitHubhttps://github.com//issues/55#issuecomment-21344057
.

Romiko Derbynew aka (Ranger Rom)
Mobile: +61 4000 90251
Email: romikov@gmail.com

@laurilehmijoki
Copy link
Owner

The diff code is the same for s3_website and jekyll-s3.

Hmm, unfortunately I don't have a good guess on what could cause the diff logic to fail on Windows but not on Mac. The diff is based on last-modified timestamps and MD5 hashes. The code responsible for doing that is here: https://github.com/laurilehmijoki/filey-diff/blob/master/lib/filey-diff/comparison.rb.

If you debug the code there, you might find the reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants