File tree 3 files changed +7
-3
lines changed
3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ def boot_config(subcommand)
78
78
end
79
79
80
80
if run_command
81
- upload! StringIO . new ( run_command ) , KAMAL . config . proxy_run_command_file
81
+ upload! StringIO . new ( run_command ) , proxy_boot_config . run_command_file
82
82
else
83
83
execute *KAMAL . proxy . reset_run_command , raise_on_non_zero_exit : false
84
84
end
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ def read_image_version
86
86
end
87
87
88
88
def read_run_command
89
- read_file ( config . proxy_run_command_file )
89
+ read_file ( config . proxy_boot . run_command_file )
90
90
end
91
91
92
92
def reset_boot_options
@@ -102,7 +102,7 @@ def reset_image_version
102
102
end
103
103
104
104
def reset_run_command
105
- remove_file config . proxy_run_command_file
105
+ remove_file config . proxy_boot . run_command_file
106
106
end
107
107
108
108
private
Original file line number Diff line number Diff line change @@ -66,6 +66,10 @@ def image_version_file
66
66
File . join host_directory , "image_version"
67
67
end
68
68
69
+ def run_command_file
70
+ File . join host_directory , "run_command"
71
+ end
72
+
69
73
def apps_directory
70
74
File . join host_directory , "apps-config"
71
75
end
You can’t perform that action at this time.
0 commit comments