zwr 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/zwr +3 -3
- data/zwr.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8dd20be05ff8e4ea65c7e9036d810dd22984e3d
|
4
|
+
data.tar.gz: a12eb668f77427eebcfb8f83e1b514f77e8c305b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9095ab2cf0b4adf4b2f6f2f3ccb6459eb1d63acee1f9dfa646787e16b242cba818a469c07fd8f3072ffbcb0873ab45b08294a19b5816b85f4461490339dbfc39
|
7
|
+
data.tar.gz: 87278c0fbccb3abf48a1d3ea1fbb2e6a27ecb8cd4ce7963258ee17d2d758e09d73eca3f364d76b3c19c4606e159c813e9bb8416509ac3631bbea70b58d20b370
|
data/bin/zwr
CHANGED
@@ -101,15 +101,15 @@ when 'deploy'
|
|
101
101
|
elsif ENV['USER'] != "root"
|
102
102
|
puts "This script must be run as super user. Use sudo zwr deploy #{ARGV[2]}"
|
103
103
|
else
|
104
|
-
if File.directory? "/var/rails_apps/#{ARGV[
|
105
|
-
putsv "Updating existing #{ARGV[
|
104
|
+
if File.directory? "/var/rails_apps/#{ARGV[1]}"
|
105
|
+
putsv "Updating existing #{ARGV[1]}"
|
106
106
|
Dir.chdir "/var/rails_apps/#{ARGV[1]}"
|
107
107
|
`git fetch`
|
108
108
|
`git checkout production`
|
109
109
|
`git reset --hard origin/production`
|
110
110
|
else
|
111
111
|
Dir.chdir "/var/rails_apps"
|
112
|
-
putsv "Deploying new project #{ARGV[
|
112
|
+
putsv "Deploying new project #{ARGV[1]}"
|
113
113
|
`git clone git@github.com:zmilojko/tst.git`
|
114
114
|
Dir.chdir "/var/rails_apps/#{ARGV[1]}"
|
115
115
|
`RAILS_ENV=production rake db:migrate`
|
data/zwr.gemspec
CHANGED