A small CLI to push an app to Cloud Foundry with zero downtime.
This is not a proper blue/green deployment. It just renames your app, pushes a new one, and deletes the old one. There is no warranty whatsoever, use at your own risks.
- Install .NET 5
- Install Warp Packer
Run ./build-all
, this will test, build, and release binaries for Windows, Mac and Linux.
Most of the build should be similar. In build/Program.fs
you may want to change the way
we shell out to warp-packer to invoke warp-packer.exe
instead.
If you are using bash, you can run ./build-all
, otherwise just run
dotnet restore build
dotnet run -p build
cf-zdt-push my-app [...]
The application name is required.
Any flags after that are directly passed to the underlying cf push my-app
command.
See zdt-cli/Cli/Push.fs
for more details.