Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: imathis/octopress
...
head fork: sit/octopress
Checking mergeability… Don't worry, you can still create the pull request.
  • 1 commit
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Commits on Dec 07, 2011
@sit sit Set umask to world readable before generating site
Ensure that calls to Jekyll and Compass force the umask for
those processes to be 022.  This ensures that any files in public/
will be world-readable, which is particularly important for anyone
with stricter umasks (e.g., the paranoid 077) using rsync for deploy.

This fixes #307.

Signed-off-by: Emil Sit <sit@emilsit.net>
8463f9a
Showing with 5 additions and 4 deletions.
  1. +5 −4 Rakefile
View
9 Rakefile
@@ -50,6 +50,7 @@ desc "Generate jekyll site"
task :generate do
raise "### You haven't set anything up yet. First run `rake install` to set up an Octopress theme." unless File.directory?(source_dir)
puts "## Generating Site with Jekyll"
+ File.umask(022)
system "compass compile --css-dir #{source_dir}/stylesheets"
system "jekyll"
end
@@ -59,8 +60,8 @@ task :watch do
raise "### You haven't set anything up yet. First run `rake install` to set up an Octopress theme." unless File.directory?(source_dir)
puts "Starting to watch source with Jekyll and Compass."
system "compass compile --css-dir #{source_dir}/stylesheets" unless File.exist?("#{source_dir}/stylesheets/screen.css")
- jekyllPid = Process.spawn("jekyll --auto")
- compassPid = Process.spawn("compass watch")
+ jekyllPid = Process.spawn("jekyll --auto", :umask=>022)
+ compassPid = Process.spawn("compass watch", :umask=>022)
trap("INT") {
[jekyllPid, compassPid].each { |pid| Process.kill(9, pid) rescue Errno::ESRCH }
@@ -75,8 +76,8 @@ task :preview do
raise "### You haven't set anything up yet. First run `rake install` to set up an Octopress theme." unless File.directory?(source_dir)
puts "Starting to watch source with Jekyll and Compass. Starting Rack on port #{server_port}"
system "compass compile --css-dir #{source_dir}/stylesheets" unless File.exist?("#{source_dir}/stylesheets/screen.css")
- jekyllPid = Process.spawn("jekyll --auto")
- compassPid = Process.spawn("compass watch")
+ jekyllPid = Process.spawn("jekyll --auto", :umask=>022)
+ compassPid = Process.spawn("compass watch", :umask=>022)
rackupPid = Process.spawn("rackup --port #{server_port}")
trap("INT") {

No commit comments for this range

Something went wrong with that request. Please try again.