Compare commits

...

2 Commits

Author SHA1 Message Date
0358744b46 Remove template correctly in Runtime.runtime_files 2024-07-08 13:51:39 -03:00
3378899612 todo management 2024-07-08 13:39:37 -03:00
2 changed files with 5 additions and 2 deletions

View File

@ -30,9 +30,10 @@
while keeping logging level configurable while keeping logging level configurable
* ✅ Fix proxy reload / Make it reload on file changes * ✅ Fix proxy reload / Make it reload on file changes
* Implement `faaso help command` * Implement `faaso help command`
* Fix `export examples/hello_crystal` it has a `template/` * Fix `export examples/hello_crystal` it has a `template/`
* ✅ Implement zero-downtime rollout (`faaso deploy`) * ✅ Implement zero-downtime rollout (`faaso deploy`)
* Cleanup `tmp/` after use unless `DEBUG` is set * Cleanup `tmp/` after use unless `DEBUG` is set
* `faaso scale` remote is broken
# Things to do but not before release # Things to do but not before release

View File

@ -23,7 +23,9 @@ module Runtime
if @@known.includes? "./runtimes/#{runtime}" if @@known.includes? "./runtimes/#{runtime}"
Log.info { "Using known runtime #{runtime}" } Log.info { "Using known runtime #{runtime}" }
runtime_base = "./runtimes/#{runtime}/" runtime_base = "./runtimes/#{runtime}/"
runtime_files = @@filelist.select(&.starts_with?(runtime_base)) runtime_files = @@filelist.select(&.starts_with?(runtime_base)).map { |path|
Path[path].normalize.to_s
}
elsif File.exists? runtime elsif File.exists? runtime
Log.info { "Using directory #{runtime} as runtime" } Log.info { "Using directory #{runtime} as runtime" }
runtime_base = "#{runtime}" runtime_base = "#{runtime}"