knctl icon indicating copy to clipboard operation
knctl copied to clipboard

knctl deploy -p path/to/app.war

Open drnic opened this issue 7 years ago • 1 comments

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 ...

drnic avatar Nov 26 '18 21:11 drnic

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

MMisoch avatar Feb 14 '19 16:02 MMisoch