heroku_deployment 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/lib/heroku_deployment.rb +9 -2
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.6
|
data/lib/heroku_deployment.rb
CHANGED
@@ -14,7 +14,14 @@ module HerokuDeployment
|
|
14
14
|
system %(rm #{(js_files.collect{|j| "public/javascripts/#{j}"} + css_files.collect{|c| "public/stylesheets/#{c}"}).join(" ")} 2> /dev/null)
|
15
15
|
HerokuDeployment::Config.commit_files << 'public/javascripts/'
|
16
16
|
HerokuDeployment::Config.commit_files << 'public/stylesheets/'
|
17
|
-
!!system(%(RAILS_ENV=production ./script/rails runner "Rails.application.config.action_controller.perform_caching = false
|
17
|
+
res = !!system(%(RAILS_ENV=production ./script/rails runner "Rails.application.config.action_controller.perform_caching = false; require 'rails/console/app' ; app.get '#{HerokuDeployment::Config.generate_url}'"))
|
18
|
+
HerokuDeployment::Config.commit_files.each do |f|
|
19
|
+
unless File.exist?(f)
|
20
|
+
puts "File '#{f}' did not get created! Deploy failed"
|
21
|
+
return false
|
22
|
+
end
|
23
|
+
end
|
24
|
+
res
|
18
25
|
end
|
19
26
|
|
20
27
|
def db_migrate
|
@@ -46,4 +53,4 @@ module HerokuDeployment
|
|
46
53
|
end
|
47
54
|
|
48
55
|
end
|
49
|
-
end
|
56
|
+
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 6
|
9
|
+
version: 0.0.6
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Mooktakim Ahmed
|
@@ -128,7 +128,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
128
128
|
requirements:
|
129
129
|
- - ">="
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
hash:
|
131
|
+
hash: -250270001842941333
|
132
132
|
segments:
|
133
133
|
- 0
|
134
134
|
version: "0"
|