Support copying files also for app
For accessories Kamal can copy over local files and then mount them into the container. https://github.com/basecamp/kamal/commit/8af7e48a9008058cf7f372f4031bf39a1ce56564
https://kamal-deploy.org/docs/configuration/accessories/#copying-files
The same would be great to have for the app itself too. Sometimes it is useful to not build them into the container.
You can specify files to mount into the container. The format is local:remote, where local is the path to the file on the local machine and remote is the path to the file in the container. They will be uploaded from the local repo to the host and then mounted.
Example:
files:
- config/my.cnf.erb:/etc/app/my.cnf
- config/myoptions.cnf:/etc/app/myoptions.cnf
Volumes can already be mounted for the app / roles, but currently I think there is no support in Kamal to copy additional files to the servers, or did I miss something?
https://kamal-deploy.org/docs/configuration/overview/#volumes
Alternatively a general copy command would work too, something like kamal server copy or kamal app copy and then the user could use the existing volumes config, but with less convenience.
Any updates on this ? It would be a nice addition.
Just ran into this exact issue and was surprised at the inconsistency. This would be really handy for copying auth keys etc. into the container.