inploy 1.7.1 → 1.7.2

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -5,7 +5,7 @@ require 'rake/gempackagetask'
5
5
  require 'spec/rake/spectask'
6
6
 
7
7
  GEM = "inploy"
8
- GEM_VERSION = "1.7.1"
8
+ GEM_VERSION = "1.7.2"
9
9
  SUMMARY = "Rails deployment made easy"
10
10
  AUTHOR = "Diego Carrion"
11
11
  EMAIL = "dc.rec1@gmail.com"
@@ -41,7 +41,7 @@ module Inploy
41
41
  end
42
42
 
43
43
  def remote_setup
44
- remote_run "cd #{path} && #{@sudo}git clone --depth 1 #{repository} #{application} && cd #{application_folder} #{checkout}#{bundle} && #{@sudo}rake inploy:local:setup environment=#{environment}#{skip_steps_cmd}"
44
+ remote_run "cd #{path} && #{@sudo}git clone --depth 1 #{repository} #{application} && cd #{application_folder} #{checkout}#{bundle} && #{@sudo}rake inploy:local:setup RAILS_ENV=#{environment} environment=#{environment}#{skip_steps_cmd}"
45
45
  end
46
46
 
47
47
  def local_setup
@@ -54,7 +54,7 @@ module Inploy
54
54
  end
55
55
 
56
56
  def remote_update
57
- remote_run "cd #{application_path} && #{@sudo}rake inploy:local:update environment=#{environment}#{skip_steps_cmd}"
57
+ remote_run "cd #{application_path} && #{@sudo}rake inploy:local:update RAILS_ENV=#{environment} environment=#{environment}#{skip_steps_cmd}"
58
58
  end
59
59
 
60
60
  def remote_rake(task)
@@ -6,12 +6,12 @@ module Inploy
6
6
  end
7
7
 
8
8
  def remote_setup
9
- run "rm -Rf #{tmp_path} && git clone . #{tmp_path} && tar czf - #{tmp_path} | ssh #{user}@#{host} 'tar xzfv - -C ~/ && mv ~#{tmp_path} #{path}/ && cd #{application_path} && rake inploy:local:setup'"
9
+ run "rm -Rf #{tmp_path} && git clone . #{tmp_path} && tar czf - #{tmp_path} | ssh #{user}@#{host} 'tar xzfv - -C ~/ && mv ~#{tmp_path} #{path}/ && cd #{application_path} && rake inploy:local:setup RAILS_ENV=#{environment} environment=#{environment}'"
10
10
  end
11
11
 
12
12
  def remote_update
13
13
  run "git push ssh://[#{user}@#{host}#{port ? ":#{port}" : ''}]#{application_path} #{branch}"
14
- remote_run "cd #{application_path} && git checkout -f && rake inploy:local:update environment=#{environment}"
14
+ remote_run "cd #{application_path} && git checkout -f && rake inploy:local:update RAILS_ENV=#{environment} environment=#{environment}"
15
15
  end
16
16
 
17
17
  def local_setup
@@ -16,7 +16,7 @@ module Inploy
16
16
 
17
17
  command = []
18
18
  command << "cd #{application_path}"
19
- command << "rake inploy:local:setup environment=#{environment}#{skip_steps_cmd}"
19
+ command << "rake inploy:local:setup RAILS_ENV=#{environment} environment=#{environment}#{skip_steps_cmd}"
20
20
  remote_run command.join(' && ')
21
21
  end
22
22
 
@@ -25,7 +25,7 @@ module Inploy
25
25
 
26
26
  command = []
27
27
  command << "cd #{application_path}"
28
- command << "rake inploy:local:update environment=#{environment}#{skip_steps_cmd}"
28
+ command << "rake inploy:local:update RAILS_ENV=#{environment} environment=#{environment}#{skip_steps_cmd}"
29
29
  remote_run command.join(' && ')
30
30
  end
31
31
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inploy
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 15
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 7
9
- - 1
10
- version: 1.7.1
9
+ - 2
10
+ version: 1.7.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Diego Carrion