Commit c4ff14c 1 parent eed365d commit c4ff14c Copy full SHA for c4ff14c
File tree 2 files changed +13
-1
lines changed
2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,8 @@ Commands:
88
88
dokku ps:rebuild # Rebuild the app
89
89
dokku ps:restart # Restart the app container
90
90
dokku ps:start # Start the app container
91
+ dokku ps:scale # List the current scale of Procfile processes
92
+ dokku ps:scale proc1=scale1 [proc2=scale2 ...] # Scale one or more Procfile processes
91
93
dokku run <cmd> # Run a one-off command in the environment of the app
92
94
dokku ssh # Start an SSH session as root user
93
95
dokku url # Show the first URL for the app
Original file line number Diff line number Diff line change @@ -4,7 +4,8 @@ class Cli < Thor
4
4
map "ps:rebuild" => "ps_rebuild" ,
5
5
"ps:restart" => "ps_restart" ,
6
6
"ps:start" => "ps_start" ,
7
- "ps:stop" => "ps_stop"
7
+ "ps:stop" => "ps_stop" ,
8
+ "ps:scale" => "ps_scale"
8
9
9
10
desc "ps" , "List processes running in app container(s)"
10
11
def ps
@@ -30,5 +31,14 @@ def ps_start
30
31
def ps_stop
31
32
run_command "ps:stop #{ app_name } "
32
33
end
34
+
35
+ desc "ps:scale" , "Scale the app processes"
36
+ def ps_scale ( *processes )
37
+ if processes . empty?
38
+ run_command "ps:scale #{ app_name } "
39
+ else
40
+ run_command "ps:scale #{ app_name } #{ processes . join ( ' ' ) } "
41
+ end
42
+ end
33
43
end
34
44
end
You can’t perform that action at this time.
0 commit comments