sunrise-deploy 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -14,18 +14,9 @@ set :repository, "#{scm_user}@somehost:~/projects/project.git"
|
|
14
14
|
set :remote, "#{scm_user}"
|
15
15
|
set :branch, "master"
|
16
16
|
|
17
|
-
|
18
|
-
|
19
|
-
namespace :app do
|
20
|
-
task :start do
|
21
|
-
run "#{try_sudo} sv start #{application}"
|
22
|
-
end
|
17
|
+
set :asset_precompile, true
|
23
18
|
|
24
|
-
|
25
|
-
|
26
|
-
end
|
19
|
+
set :cache_clear, true
|
20
|
+
set :cache_paths, ["tmp/cache", "public/cache"]
|
27
21
|
|
28
|
-
|
29
|
-
run "#{try_sudo} sv restart #{application}"
|
30
|
-
end
|
31
|
-
end
|
22
|
+
server "SERVER_IP", :app, :web, :db, :primary => true
|
@@ -5,7 +5,7 @@ module Capistrano
|
|
5
5
|
namespace :cache do
|
6
6
|
desc "Clear all cache in project by 'cache_paths': (tmp/cache, public/cache)"
|
7
7
|
task :clear do
|
8
|
-
|
8
|
+
[cache_paths].flatten.each do |folder|
|
9
9
|
path = File.join(deploy_to, folder, "*")
|
10
10
|
run "#{try_sudo} rm -rf #{path}"
|
11
11
|
end
|