Skip to content

Commit 30a10f1

Browse files
committed
Production tuning
1 parent 2f81090 commit 30a10f1

File tree

15 files changed

+18
-7
lines changed

15 files changed

+18
-7
lines changed

Rakefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
SITE_NAME = File.basename(Dir.pwd)
22
DEPLOY_PATH = ENV['SITE_DEPLOY_PATH']
33
SITE_ROOT = File.join(DEPLOY_PATH, SITE_NAME)
4+
IGNORE = %w{Rakefile Gemfile Gemfile.lock Readme.md}
45

56
desc "Deploy working copy of site"
67
task :deploy do
78
raise "No deploy path" unless DEPLOY_PATH
89
system "jekyll build -d #{SITE_ROOT}"
9-
rm File.join(SITE_ROOT, 'Rakefile')
10+
IGNORE.each do |f|
11+
rm File.join(SITE_ROOT, f)
12+
end
1013
end
1114

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)