Open fideloper opened 10 months ago
This would be an awesome addition to the fly-laravel package!
I agree on the settings saved on a .fly.yaml config, it makes the flag config passed by the user visible and findable somewhere( answers the short-term mem-loss question of what did I pass as flag again? Without having to check cmd history ).
Also, we can possibly read from that file as well instead of relying on flags. If there are no flags, we can check that file. If there are flags, override the values in that file?
Similar to what Sam did for Ruby, I think creating a Dockerfile generator would be interesting.
Nginx + PHP-FPM
vsNginx Unit
vsNginx + Laravel Octane
flyctl
from the Laravel stuff generatedMy proposed command would be something like:
Potential flags:
These settings could perhaps also be saved to a local
.fly.yaml
file or similar so when users runfly launch
we could pre-populatePHP_VERSION
/NODE_VERSION
OR those numbers could be hard-coded in the resultingDockerfile
so we don't need to care about those Docker build arguments (currently we have to set Docker build args).