imathis/octopress — Issue #473: permissions during generate
Author: jimpriest
Created: 2012-03-10 01:13:58+00:00
State: open

I've been working the last few days to get Octopress working on Windows and deploy to my off-site host.

I've got things working but have one weird issue and I'm not sure if it's something I'm doing wrong, a config issue I'm missing or something wacky with Windows.

So I add a post, then I do a 'rake generate'. Then I'd do 'rake deploy' and I'd get a lot of permission issues.

It took me awhile to figure out what was going on - but when I do 'rake generate' Octopress creates the /public/mysite/assets and /blog directories with no permissions. So when I try to deploy it fails.

drwxr-xr-x+ 1 Jim None 0 Mar 9 19:06 images
drwxr-xr-x+ 1 Jim None 0 Mar 9 19:06 stylesheets
drwxr-xr-x+ 1 Jim None 0 Mar 9 19:06 javascripts
drwxr-xr-x+ 1 Jim None 0 Mar 9 19:34 about
-rwxr-xr-x+ 1 Jim None 664 Mar 9 20:07 sitemap.xml
-rwxr-xr-x+ 1 Jim None 884 Mar 9 20:07 atom.xml
d---------+ 1 Jim None 0 Mar 9 20:07 blog
-rwxr-xr-x+ 1 Jim None 3957 Mar 9 20:07 index.html
d---------+ 1 Jim None 0 Mar 9 20:07 assets
-rwxr-xr-x+ 1 Jim None 400 Mar 9 20:07 favicon.png

I can do a simple chmod -755 -R mysite and then it will deploy fine.

I've tried running cygwin as an admin - no change.

Anyone have any ideas? Can I integrate the chmod command into the 'rake generate' (I'm new to Ruby)