vlad-daemon_kit 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +6 -0
- data/lib/vlad/daemon_kit.rb +4 -4
- metadata +1 -1
data/CHANGELOG.rdoc
CHANGED
data/lib/vlad/daemon_kit.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'vlad'
|
2
2
|
|
3
3
|
class Vlad::DaemonKit
|
4
|
-
VERSION = '1.1.
|
4
|
+
VERSION = '1.1.2'
|
5
5
|
|
6
6
|
set :mkdirs, 'tmp'
|
7
7
|
set :shared_paths, { 'log' => 'log' }
|
@@ -12,19 +12,19 @@ class Vlad::DaemonKit
|
|
12
12
|
desc "Run the daemon in the foreground"
|
13
13
|
remote_task(:run_app, :extra_args, {:roles => :app}) do |task, args|
|
14
14
|
extra_args = args[:extra_args]
|
15
|
-
run "cd #{current_path} && bin/#{application} -e #{environment} #{arguments.join(' ')} #{extra_args}
|
15
|
+
run "cd #{current_path} && bin/#{application} run -e #{environment} #{arguments.join(' ')} #{extra_args}"
|
16
16
|
end
|
17
17
|
|
18
18
|
desc "Start the daemon"
|
19
19
|
remote_task(:start_app, :extra_args, {:roles => :app}) do |task, args|
|
20
20
|
extra_args = args[:extra_args]
|
21
|
-
run "cd #{current_path} && bin/#{application} -e #{environment} #{arguments.join(' ')} #{extra_args}
|
21
|
+
run "cd #{current_path} && bin/#{application} start -e #{environment} #{arguments.join(' ')} #{extra_args}"
|
22
22
|
end
|
23
23
|
Rake::Task['vlad:start_app'].enhance %w(vlad:stop_app)
|
24
24
|
|
25
25
|
desc "Stop the daemon"
|
26
26
|
remote_task :stop_app, :roles => :app do
|
27
|
-
run "cd #{current_path} && bin/#{application} -e #{environment}
|
27
|
+
run "cd #{current_path} && bin/#{application} stop -e #{environment}"
|
28
28
|
end
|
29
29
|
|
30
30
|
desc "Run script/console on the remove"
|