Skip to content

Commit 1498ba9

Browse files
committed
add function restart puma to deploy config
1 parent 13cb143 commit 1498ba9

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

config/deploy.rb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
invoke :'my_db_migrate'
8383
invoke :'my_assets_clean'
8484
invoke :'deploy:cleanup'
85-
invoke :'my_start_puma'
85+
invoke :'my_restart_puma'
8686

8787
on :launch do
8888
in_path(fetch(:current_path)) do
@@ -139,6 +139,14 @@
139139
comment %{Puma stopped!}
140140
end
141141
end
142+
143+
task :my_restart_puma do
144+
in_path(fetch(:current_path)) do
145+
invoke :'my_stop_puma'
146+
invoke :'my_start_puma'
147+
end
148+
end
149+
142150
# For help in making your deploy script, see the Mina documentation:
143151
#
144152
# - https://github.com/mina-deploy/mina/docs

0 commit comments

Comments
 (0)