mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-03 07:12:33 +00:00
refactor(templates): update service template file handling to use dynamic file name from constants
This commit is contained in:
1 parent
936a192236
commit
39f25573bf
7 files changed
+19
-15
No files matched your search
@@ -105,7 +105,7 @@ class Init extends Command
|
||||
$response = Http::retry(3, 1000)->get(config('constants.services.official'));
|
||||
if ($response->successful()) {
|
||||
$services = $response->json();
|
||||
File::put(base_path('templates/service-templates.json'), json_encode($services));
|
||||
File::put(base_path('templates/'.config('constants.services.file_name')), json_encode($services));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user