Skip to content

Commit bc6c9fa

Browse files
committed
Improved Rakefile: added step to chgrp/chmod uploaded files.
1 parent 707ab9c commit bc6c9fa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Rakefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ path = '/var/www/bridgepdx_wordpress/wp-content/themes/osbp_wordpress_theme_v3/'
55

66
# Derived settings
77
remote = "#{user}@#{host}:#{path}"
8+
# rsync: (v)erbose e(x)clude-other-devices (r)ecursive preserve-sym(l)inks preserve-(p)ermissions preserve-(D)evices
89
rsync = 'rsync --checksum -vxrlpD --progress --exclude=.* --exclude=*~ --exclude=*.swp --exclude=Rakefile --exclude=my_common_styles_url.txt* --exclude=shared_fragments'
910

1011
desc "Show help"
@@ -19,8 +20,8 @@ task :default => :help
1920

2021
desc "Deploys common style files using rsync"
2122
task :deploy do
22-
# rsync: (v)erbose e(x)clude-other-devices (r)ecursive preserve-sym(l)inks preserve-(p)ermissions preserve-(D)evices
2323
sh "#{rsync} . #{remote}"
24+
sh "ssh #{user}@#{host} 'chgrp -R #{user} #{path}; chmod -R ug+rwX #{path}'"
2425
end
2526

2627
desc "Copy deployed files from remote into this directory -- will overwrite your files here"

0 commit comments

Comments
 (0)