0

Unfortunately I face problems with deployment to Marathon.

I do curl -X PUT -H 'Content-Type: application/json' -i http://marathon_url/v2/apps/lookout -d@lookout.json

And receive response:

HTTP/1.1 100 Continue

HTTP/1.1 200 OK
Connection: close
Server: Jetty(8.y.z-SNAPSHOT)

That's it. No deploymentId returned in response. Sometimes it needs to do around 10 curl to get an app deployed.

Sometimes I receive deploymentId, but anyway nothing changed in Marathon UI.

Marathon version: 0.9.2

Does anybody have the same problem?

Pavel
  • 548
  • 5
  • 23

1 Answers1

1

PUT is for changing the config of an already deployed app. Use POST to deploy an app.

Michael Hausenblas
  • 13,162
  • 4
  • 52
  • 66