nodex 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/nodex/dsl.rb +5 -1
- data/lib/nodex/servers/mongrel.rb +1 -1
- data/lib/nodex/servers/passenger.rb +3 -2
- data/lib/nodex/servers/thin.rb +2 -2
- data/lib/nodex/servers/unicorn.rb +2 -2
- data/lib/nodex/version.rb +1 -1
- metadata +1 -1
data/lib/nodex/dsl.rb
CHANGED
@@ -29,7 +29,7 @@ module Nodex
|
|
29
29
|
def clear_cache
|
30
30
|
unless skip_step?('clear_cache')
|
31
31
|
cache_dirs.each do |dir|
|
32
|
-
|
32
|
+
remote_run "cd #{application_path} && rm -rf #{dir}"
|
33
33
|
end
|
34
34
|
end
|
35
35
|
end
|
@@ -46,6 +46,10 @@ module Nodex
|
|
46
46
|
remote_run "cd #{application_path} && #{rake_task("gems:install")}" unless skip_step?('install_gems')
|
47
47
|
end
|
48
48
|
|
49
|
+
def create_tmp
|
50
|
+
remote_run "cd #{application_path} && mkdir tmp"
|
51
|
+
end
|
52
|
+
|
49
53
|
def install_gems
|
50
54
|
if using_bundler?
|
51
55
|
bundle_install
|
data/lib/nodex/servers/thin.rb
CHANGED
@@ -2,8 +2,8 @@ module Nodex
|
|
2
2
|
module Servers
|
3
3
|
module Thin
|
4
4
|
def restart_server
|
5
|
-
|
6
|
-
|
5
|
+
remote_run "cd #{application_path} && thin --pid tmp/pids/thin.pid stop"
|
6
|
+
remote_run "cd #{application_path} && thin --rackup config.ru --daemonize\
|
7
7
|
--log log/thin.log --pid tmp/pids/thin.pid --environment production\
|
8
8
|
--port 4500 start"
|
9
9
|
end
|
data/lib/nodex/version.rb
CHANGED