producer-rails 0.0.6 → 0.1.0
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/lib/producer/rails.rb +5 -4
- data/lib/producer/rails/version.rb +1 -1
- metadata +2 -3
data/lib/producer/rails.rb
CHANGED
@@ -15,7 +15,7 @@ module Producer
|
|
15
15
|
|
16
16
|
UNICORN_CONF_PATH = 'config/unicorn.rb'.freeze
|
17
17
|
WWW_PID_PATH = 'tmp/run/www.pid'.freeze
|
18
|
-
WWW_SOCK_PATH = 'tmp/run/www.
|
18
|
+
WWW_SOCK_PATH = 'tmp/run/www.sock'.freeze
|
19
19
|
BUNDLER_UNSET_GROUPS = %w[development test].freeze
|
20
20
|
|
21
21
|
define_macro :deploy do
|
@@ -27,7 +27,7 @@ module Producer
|
|
27
27
|
deploy_update app_path
|
28
28
|
end
|
29
29
|
|
30
|
-
assets_update app_path
|
30
|
+
assets_update app_path if set? :assets_update
|
31
31
|
|
32
32
|
deploy_restart
|
33
33
|
end
|
@@ -43,6 +43,7 @@ module Producer
|
|
43
43
|
db_config app_path
|
44
44
|
bundle_install app_path, (get :bundler_unset, [])
|
45
45
|
db_init app_path
|
46
|
+
db_seed app_path if set? :db_seed
|
46
47
|
secrets_init app_path
|
47
48
|
www_config app_path
|
48
49
|
end
|
@@ -101,7 +102,7 @@ module Producer
|
|
101
102
|
|
102
103
|
define_macro :app_init do |path, dirs: [], files: {}|
|
103
104
|
run_dir = "#{path}/tmp/run"
|
104
|
-
dirs << 'public/assets'
|
105
|
+
dirs << 'public/assets' if set? :assets_update
|
105
106
|
dirs.map! { |e| File.join(path, e) }
|
106
107
|
files = files.each_with_object({}) do |(k, v), m|
|
107
108
|
m[File.join(path, k)] = v
|
@@ -169,7 +170,7 @@ production:
|
|
169
170
|
worker_processes #{get :www_workers}
|
170
171
|
timeout #{get :www_timeout, 60}
|
171
172
|
preload_app false
|
172
|
-
pid '#{get :www_pid_path}'
|
173
|
+
pid '#{get :www_pid_path, WWW_PID_PATH}'
|
173
174
|
listen "\#{ENV['HOME']}/#{path}/#{(get :www_sock_path, WWW_SOCK_PATH)}"
|
174
175
|
eoh
|
175
176
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: producer-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-02-
|
12
|
+
date: 2015-02-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: producer-core
|
@@ -91,4 +91,3 @@ signing_key:
|
|
91
91
|
specification_version: 3
|
92
92
|
summary: producer rails addon
|
93
93
|
test_files: []
|
94
|
-
has_rdoc:
|