appscrolls 0.11.1 → 0.11.2
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog.md +4 -0
- data/scrolls/cf.rb +12 -4
- data/scrolls/sidekiq.rb +3 -3
- data/version.rb +1 -1
- metadata +3 -3
data/ChangeLog.md
CHANGED
data/scrolls/cf.rb
CHANGED
@@ -72,13 +72,21 @@ after_everything do
|
|
72
72
|
run "mkdir -p deploy"
|
73
73
|
run "cp #{project_name}.war deploy/"
|
74
74
|
end
|
75
|
-
|
76
|
-
|
77
|
-
|
75
|
+
run_vmc "push #{project_name} --runtime #{@cf_ruby_runtime} --path . --no-start"
|
76
|
+
run_vmc "env-add #{project_name} BUNDLE_WITHOUT=assets:test:development"
|
77
|
+
run_vmc "start #{project_name}"
|
78
|
+
end
|
79
|
+
|
80
|
+
def vmc
|
81
|
+
"vmc _#{@vmc_version}_"
|
82
|
+
end
|
83
|
+
|
84
|
+
def run_vmc(command)
|
85
|
+
run "#{vmc} #{command}"
|
78
86
|
end
|
79
87
|
|
80
88
|
def cf_delete_app(name)
|
81
|
-
run %Q{
|
89
|
+
run %Q{#{vmc} apps | grep " #{name} " && #{vmc} delete #{name}}
|
82
90
|
end
|
83
91
|
|
84
92
|
def cf_standalone_command(key, name, command, services={})
|
data/scrolls/sidekiq.rb
CHANGED
@@ -5,9 +5,9 @@ gem "sinatra", ">= 1.3.0", require: false
|
|
5
5
|
|
6
6
|
initializer "sidekiq.rb", <<-RUBY
|
7
7
|
if $redis_config[:password]
|
8
|
-
redis_url = "redis://:\#{$redis_config[:password]}@\#{$redis_config[:host]}:\#{$redis_config[:port]}/
|
8
|
+
redis_url = "redis://:\#{$redis_config[:password]}@\#{$redis_config[:host]}:\#{$redis_config[:port]}/0"
|
9
9
|
else
|
10
|
-
redis_url = "redis://\#{$redis_config[:host]}:\#{$redis_config[:port]}/
|
10
|
+
redis_url = "redis://\#{$redis_config[:host]}:\#{$redis_config[:port]}/0"
|
11
11
|
end
|
12
12
|
Rails.logger.info "Setting sidekiq redis: \#{{ url: redis_url, namespace: 'sidekiq' }.inspect}"
|
13
13
|
Sidekiq.redis = { url: redis_url, namespace: 'sidekiq' }
|
@@ -40,7 +40,7 @@ after_everything do
|
|
40
40
|
services = $cf_manifest["applications"]["."]["services"]
|
41
41
|
manifest_file = cf_standalone_command("worker", worker_name, "bundle exec sidekiq -e production", services)
|
42
42
|
cf_delete_app worker_name
|
43
|
-
|
43
|
+
run_vmc "push #{worker_name} --path . --manifest #{manifest_file}"
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
data/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appscrolls
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -308,7 +308,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
308
308
|
version: '0'
|
309
309
|
segments:
|
310
310
|
- 0
|
311
|
-
hash: -
|
311
|
+
hash: -2129944534686319540
|
312
312
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
313
313
|
none: false
|
314
314
|
requirements:
|
@@ -317,7 +317,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
317
317
|
version: '0'
|
318
318
|
segments:
|
319
319
|
- 0
|
320
|
-
hash: -
|
320
|
+
hash: -2129944534686319540
|
321
321
|
requirements: []
|
322
322
|
rubyforge_project:
|
323
323
|
rubygems_version: 1.8.25
|