daddy 0.3.28 → 0.3.29
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/daddy/version.rb +1 -1
- data/lib/tasks/task_helper.rb +2 -2
- data/lib/tasks/unicorn/unicorn.erb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: adf36c1695d2b7697cfd3aaeeb477cab43e88932
|
4
|
+
data.tar.gz: 4838ac64ba842c91ecf009bc50762aad2c3cdd0f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50908c252c73b57e76de93318e3732bd136b60041b6d669d040f41df832986e0d36dc057d56ac284d29e11d4fd26848461f9cdf7dbde57d374325ca44db20899
|
7
|
+
data.tar.gz: 4a763e15e87d99b6143cb5b7628ba158c2a6fa625717bda1645fe233ca1f977f30a77cc8f2362f65410a84bf365886b59b2e7a3a49e37700f92e324ed8e7ee09
|
data/lib/daddy/version.rb
CHANGED
data/lib/tasks/task_helper.rb
CHANGED
@@ -3,11 +3,11 @@ require 'erb'
|
|
3
3
|
require 'yaml'
|
4
4
|
|
5
5
|
def self.rails_root
|
6
|
-
ENV['RAILS_ROOT'] || Rails.root
|
6
|
+
ENV['RAILS_ROOT'] || @_rails_root ||= ask('RAILS_ROOT', :default => Rails.root)
|
7
7
|
end
|
8
8
|
|
9
9
|
def self.rails_env
|
10
|
-
ENV['RAILS_ENV'] || 'development'
|
10
|
+
ENV['RAILS_ENV'] || @_rails_env ||= ask('RAILS_ENV', :default => 'development')
|
11
11
|
end
|
12
12
|
|
13
13
|
def self.app_name
|
@@ -6,8 +6,8 @@
|
|
6
6
|
. /etc/rc.d/init.d/functions
|
7
7
|
|
8
8
|
RAILS_USER=<%= ENV['USER'] %>
|
9
|
-
RAILS_ENV=<%=
|
10
|
-
RAILS_ROOT=<%=
|
9
|
+
RAILS_ENV=<%= rails_env %>
|
10
|
+
RAILS_ROOT=<%= rails_root %>
|
11
11
|
|
12
12
|
PID=${RAILS_ROOT}/tmp/pids/unicorn.pid
|
13
13
|
CONFIG=${RAILS_ROOT}/config/unicorn.rb
|
@@ -15,7 +15,7 @@ CONFIG=${RAILS_ROOT}/config/unicorn.rb
|
|
15
15
|
export PATH="${PATH}":/usr/local/bin
|
16
16
|
|
17
17
|
start() {
|
18
|
-
daemon --user=${RAILS_USER} --pidfile=$PID bundle exec
|
18
|
+
daemon --user=${RAILS_USER} --pidfile=$PID bundle exec unicorn_rails -c ${CONFIG} -E ${RAILS_ENV} -D
|
19
19
|
}
|
20
20
|
|
21
21
|
stop() {
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: daddy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.29
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ichy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capybara
|