Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Exclude conf from package

  • Loading branch information...
commit c762c0982a16fad575ef734eb925f939809cdd17 1 parent 31b1a76
@ndbroadbent authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  Capfile
View
3  Capfile
@@ -12,8 +12,9 @@ set :current_path, "#{deploy_to}/#{application}"
desc "Package application"
task :build_package do
puts "== Packaging application..."
+ exclude = %w(.git config/config.yml config/authorized_users.yml config/user_radio_prefs.yml *.tar.gz)
%x[cd #{local_path} && \
- tar -czpvf /tmp/#{application}.tar.gz #{local_path} --exclude=.git]
+ tar -czpvf /tmp/#{application}.tar.gz #{local_path} #{exclude.map{|e|"--exclude=#{e}"}.join(" ")}]
puts "===== #{application}.tar.gz was created."
end
Please sign in to comment.
Something went wrong with that request. Please try again.