Here is the rake file.
task :default => :release task :release do target = 'releases/' + Time.new.strftime('%Y%m%d') mkdir_p target cp Dir["web"], target end
I get a "permission denied - network". what should I do to give rake the same rights that I have when they start in windows.
I had this problem, as simple as the goal was read-only. In this case, it webmay not exist or may be unreadable.
web
I'm not an expert in rake, but where is it announced Dir?
Dir
How about using sh?
sh %& copy "#{Dir['web']}" "#{target}" &