dploy-rails 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/dploy/rails/version.rb +1 -1
- data/lib/tasks/deploy.rake +6 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c77adadf50d81303fcd3c3033133209bb849150
|
4
|
+
data.tar.gz: d9a61ebb3e388e6500b1ea212bb08aab418530d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 670218c3bd1f3999abacbce22714d133adeaa03d73ae6b8fa53adfedbc1cc23a0b7a33b5961847e35c9a499c8a9db6f84cf5648edc49e27837d4347956f6bd5c
|
7
|
+
data.tar.gz: cae60844b27d076678209f1fdc9e41d9e4ce8d116071c13fe47ada9082b8ba81a5881248fa4b4576710c9f1d976734115761635f88ad8042cb20b440312cab38
|
data/lib/dploy/rails/version.rb
CHANGED
data/lib/tasks/deploy.rake
CHANGED
@@ -50,10 +50,10 @@ task :deploy do
|
|
50
50
|
pid = exec!(%{cat tmp/pids/puma.pid}).to_i
|
51
51
|
break if pid <= 0
|
52
52
|
|
53
|
-
print_step_description "Killing process..."
|
53
|
+
print_step_description "Killing puma server process..."
|
54
54
|
print_output_unless_blank exec!(%{kill -9 #{pid}})
|
55
55
|
|
56
|
-
print_step_description "Pulling latest update from git..."
|
56
|
+
print_step_description "Pulling latest update from git remote..."
|
57
57
|
print_output_unless_blank exec!(%{git pull})
|
58
58
|
last_commit = exec!(%{git log -1 --oneline}).strip
|
59
59
|
|
@@ -63,14 +63,14 @@ task :deploy do
|
|
63
63
|
print_step_description "Running database migration..."
|
64
64
|
print_output_unless_blank exec!(%{bin/rails db:migrate})
|
65
65
|
|
66
|
-
print_step_description "
|
67
|
-
print_output_unless_blank exec!(%{
|
66
|
+
print_step_description "Running yarn install..."
|
67
|
+
print_output_unless_blank exec!(%{yarn})
|
68
68
|
|
69
69
|
print_step_description "Precompiling assets..."
|
70
|
-
print_output_unless_blank exec!(%{
|
70
|
+
print_output_unless_blank exec!(%{yarn build})
|
71
71
|
|
72
72
|
print_step_description "Starting Ruby on Rails application..."
|
73
|
-
print_output_unless_blank exec!(%{
|
73
|
+
print_output_unless_blank exec!(%{yarn start})
|
74
74
|
|
75
75
|
print_step_description "Done. Deployed to #{domain} (#{last_commit})"
|
76
76
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dploy-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- artificis
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-12-
|
11
|
+
date: 2017-12-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|