sunrise-deploy 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc
CHANGED
@@ -18,6 +18,10 @@ Update code, bundle install, migrate, assets precompile and restart server:
|
|
18
18
|
|
19
19
|
bundle exec cap app:deploy
|
20
20
|
|
21
|
+
Update code and restart server:
|
22
|
+
|
23
|
+
bundle exec cap app:touch
|
24
|
+
|
21
25
|
Update code:
|
22
26
|
|
23
27
|
bundle exec cap app:update
|
@@ -38,5 +42,9 @@ Bundler install:
|
|
38
42
|
|
39
43
|
bundle exec cap bundle:install
|
40
44
|
|
45
|
+
Clear cached files in folders ["tmp/cache", "public/cache"]:
|
46
|
+
|
47
|
+
bundle exec cap cache:clear
|
48
|
+
|
41
49
|
|
42
50
|
Copyright (c) 2012 Fodojo, released under the MIT license
|
@@ -30,6 +30,8 @@ module Capistrano
|
|
30
30
|
_cset :assets_prefix, "assets"
|
31
31
|
_cset :assets_role, [:web]
|
32
32
|
|
33
|
+
_cset :cache_clear, true
|
34
|
+
|
33
35
|
namespace :app do
|
34
36
|
desc "Update code, bundle install, migrate, assets precompile and restart server"
|
35
37
|
task :deploy do
|
@@ -37,6 +39,14 @@ module Capistrano
|
|
37
39
|
bundle.install
|
38
40
|
db.migrate
|
39
41
|
assets.precompile if asset_precompile
|
42
|
+
cache.clear if cache_clear
|
43
|
+
restart
|
44
|
+
end
|
45
|
+
|
46
|
+
desc "Update code and restart server"
|
47
|
+
task :touch do
|
48
|
+
update
|
49
|
+
cache.clear if cache_clear
|
40
50
|
restart
|
41
51
|
end
|
42
52
|
|
@@ -46,14 +56,17 @@ module Capistrano
|
|
46
56
|
strategy.deploy!
|
47
57
|
end
|
48
58
|
|
59
|
+
desc "Start application handler"
|
49
60
|
task :start do
|
50
61
|
run "#{try_sudo} sv start #{application}"
|
51
62
|
end
|
52
63
|
|
64
|
+
desc "Stop application handler"
|
53
65
|
task :stop do
|
54
66
|
run "#{try_sudo} sv stop #{application}"
|
55
67
|
end
|
56
68
|
|
69
|
+
desc "Restart application handler"
|
57
70
|
task :restart, :roles => :app, :except => { :no_release => true } do
|
58
71
|
run "#{try_sudo} sv restart #{application}"
|
59
72
|
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module Capistrano
|
2
|
+
Configuration.instance(true).load do
|
3
|
+
set :cache_paths, ["tmp/cache", "public/cache"]
|
4
|
+
|
5
|
+
namespace :cache do
|
6
|
+
desc "Clear all cache in project by 'cache_paths': (tmp/cache, public/cache)"
|
7
|
+
task :clear do
|
8
|
+
Array.wrap(cache_paths).each do |folder|
|
9
|
+
path = File.join(deploy_to, folder, "*")
|
10
|
+
run "#{try_sudo} rm -rf #{path}"
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sunrise-deploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2013-02-28 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: capistrano
|
@@ -56,6 +56,7 @@ files:
|
|
56
56
|
- lib/sunrise/deploy/strategy/simple.rb
|
57
57
|
- lib/sunrise/deploy/version.rb
|
58
58
|
- lib/sunrise/deploy/recipes.rb
|
59
|
+
- lib/sunrise/deploy/recipes/cache.rb
|
59
60
|
- lib/sunrise/deploy/recipes/assets.rb
|
60
61
|
- lib/sunrise/deploy/recipes/appication.rb
|
61
62
|
- lib/sunrise/deploy/recipes/sphinx.rb
|
@@ -88,8 +89,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
88
89
|
version: '0'
|
89
90
|
requirements: []
|
90
91
|
rubyforge_project: sunrise-deploy
|
91
|
-
rubygems_version: 1.8.
|
92
|
+
rubygems_version: 1.8.23
|
92
93
|
signing_key:
|
93
94
|
specification_version: 3
|
94
95
|
summary: Deploy for sunrise-cms
|
95
96
|
test_files: []
|
97
|
+
has_rdoc:
|