zwr 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/zwr +11 -11
- data/lib/tasks/zwr.rake +1 -0
- 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: b930cc254fd6fca6327d3389f30cec778200f979
|
4
|
+
data.tar.gz: 3ac9a647bf675ed0f830c87a2b1b1f1ecf7cddb2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8347b774df039f0ed4e39cc9153c4d1eaf82c35be733a7e5a01aca12cb88a36a72e313384f4c748d14fd5528466a17499062bd3ee90c01238653c09c66cb46c
|
7
|
+
data.tar.gz: ef999fed225092dff4460108f6f64be9600b0a89b56e8ee0628af1633b220033009f8396e4037d4436d297180f8d14087517569572e948a3806f48ce00f72b9b
|
data/bin/zwr
CHANGED
@@ -104,23 +104,23 @@ when 'deploy'
|
|
104
104
|
if File.directory? "/var/rails_apps/#{ARGV[1]}"
|
105
105
|
putsv "Updating existing #{ARGV[1]}"
|
106
106
|
Dir.chdir "/var/rails_apps/#{ARGV[1]}"
|
107
|
-
`git fetch`
|
108
|
-
`git checkout production`
|
109
|
-
`git reset --hard origin/production`
|
107
|
+
`cd /var/rails_apps/#{ARGV[1]} ; git fetch`
|
108
|
+
`cd /var/rails_apps/#{ARGV[1]} ; git checkout production`
|
109
|
+
`cd /var/rails_apps/#{ARGV[1]} ; git reset --hard origin/production`
|
110
110
|
else
|
111
111
|
Dir.chdir "/var/rails_apps"
|
112
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
|
-
`
|
116
|
-
`RAILS_ENV=production rake db:
|
117
|
-
`RAILS_ENV=production rake db:seed`
|
118
|
-
`chmod 777 tmp -R`
|
119
|
-
`chmod 777 log`
|
120
|
-
`chmod 777 db`
|
121
|
-
`chmod 777 db/production.sqlite3`
|
115
|
+
`bundle install`
|
116
|
+
`cd /var/rails_apps/#{ARGV[1]} ; RAILS_ENV=production rake db:migrate`
|
117
|
+
`cd /var/rails_apps/#{ARGV[1]} ; RAILS_ENV=production rake db:seed`
|
118
|
+
`chmod 777 /var/rails_apps/#{ARGV[1]}/tmp -R`
|
119
|
+
`chmod 777 /var/rails_apps/#{ARGV[1]}/log`
|
120
|
+
`chmod 777 /var/rails_apps/#{ARGV[1]}/db`
|
121
|
+
`chmod 777 /var/rails_apps/#{ARGV[1]}/db/production.sqlite3`
|
122
122
|
end
|
123
|
-
`touch tmp/restart.txt`
|
123
|
+
`touch /var/rails_apps/#{ARGV[1]}/tmp/restart.txt`
|
124
124
|
end
|
125
125
|
else
|
126
126
|
show_usage
|
data/lib/tasks/zwr.rake
CHANGED
data/zwr.gemspec
CHANGED