cppforlife/knctl

knctl deploy -p path/to/app.war

drnic opened this issue · 1 comments

drnic commented

Currently knctl deploy -d path/to/folder only supports a folder of raw source files. In cloud foundry, cf push -p supports both a folder and single file. The following demo should work (as it is common for Java/java-buildpack to consume a pre-built .war file)

git clone https://github.com/cloudfoundry-samples/spring-music
cd spring-music
./gradlew clean assemble
knctl deploy -s spring-music --path build/libs/spring-music-1.0.jar ...

We stumbled across the same issue and solved it via specifying the --template-env PACK_APP_ZIP.