Skip to content

Instantly share code, notes, and snippets.

@ingydotnet
Created February 22, 2012 05:25
Show Gist options
  • Save ingydotnet/1881672 to your computer and use it in GitHub Desktop.
Save ingydotnet/1881672 to your computer and use it in GitHub Desktop.
ingy@thinkingy:~/.work/as/stackato-samples/node/node-env$ stackato start env-test4 -t
Request GET, application/json: http://api.stackato-ingy.local/info
Response Code: HTTP/1.1 200 OK
Response Code': 200
Response Status: ok
Response Error:
Response Headers: Server nginx/0.7.65 Date {Wed, 22 Feb 2012 05:24:40 GMT} Content-Type {application/json; charset=utf-8} Transfer-Encoding chunked Connection close ETag {"68a12f1009d2bfa4a9cc93e23c46fe9c"} Cache-Control {max-age=0, private, must-revalidate} X-UA-Compatible IE=Edge
Response Body: {"name":"vcap","build":2222,"support":"[email protected]","version":"0.999","vendor_version":"v0.9.0-181-g51ca366","description":"ActiveState Stackato","allow_debug":true,"user":"[email protected]","limits":{"memory":8192,"app_uris":16,"services":50,"apps":100},"usage":{"memory":64,"apps":1,"services":0},"frameworks":{"rails3":{"name":"rails3","runtimes":[{"name":"ruby18","version":"1.8.7","description":"Ruby 1.8.7"},{"name":"ruby19","version":"1.9.2p290","description":"Ruby 1.9.2"}],"appservers":[{"name":"thin","description":"Thin"}],"detection":[{"config/application.rb":true},{"config/environment.rb":true}]},"lift":{"name":"lift","runtimes":[{"name":"java","version":"1.6","description":"Java 6"}],"appservers":[{"name":"tomcat","description":"Tomcat"}],"detection":[{"*.war":true}]},"java_web":{"name":"java_web","runtimes":[{"name":"java","version":"1.6","description":"Java 6"}],"appservers":[{"name":"tomcat","description":"Tomcat"}],"detection":[{"*.war":true}]},"php":{"name":"php","runtimes":[{"name":"php","version":"5.3","description":"PHP 5"}],"appservers":[{"name":"apache","description":"Apache"}],"detection":[{"*.php":true}]},"sinatra":{"name":"sinatra","runtimes":[{"name":"ruby18","version":"1.8.7","description":"Ruby 1.8.7"},{"name":"ruby19","version":"1.9.2p290","description":"Ruby 1.9.2"}],"appservers":[{"name":"thin","description":"Thin"}],"detection":[{"*.rb":"require 'sinatra'|require \"sinatra\""},{"config/environment.rb":false}]},"python":{"name":"python","runtimes":[{"name":"python27","version":"2.7","description":"ActivePython 2.7"},{"name":"python32","version":"3.2","description":"ActivePython 3.2"}],"appservers":[],"detection":[{"*.py":"."}]},"generic":{"name":"generic","runtimes":[{"name":"node","version":"0.6.10","description":"Node.js"}],"appservers":[],"detection":[{"*":"."}]},"grails":{"name":"grails","runtimes":[{"name":"java","version":"1.6","description":"Java 6"}],"appservers":[{"name":"tomcat","description":"Tomcat"}],"detection":[{"*.war":true}]},"spring":{"name":"spring","runtimes":[{"name":"java","version":"1.6","description":"Java 6"}],"appservers":[{"name":"tomcat","description":"Tomcat"}],"detection":[{"*.war":true}]},"clojure":{"name":"clojure","runtimes":[{"name":"lein","version":"1.6.2","description":"Leiningen for Clojure"}],"appservers":[],"detection":[{"project.clj":"."}]},"perl":{"name":"perl","runtimes":[{"name":"perl514","version":"5.14","description":"ActivePerl 5.14"}],"appservers":[],"detection":[{"app.psgi":"."}]},"node":{"name":"node","runtimes":[{"name":"node","version":"0.6.10","description":"Node.js"}],"appservers":[],"detection":[{"*.js":"."}]}}}
Request GET, application/json: http://api.stackato-ingy.local/apps/env%2Dtest4
Response Code: HTTP/1.1 200 OK
Response Code': 200
Response Status: ok
Response Error:
Response Headers: Server nginx/0.7.65 Date {Wed, 22 Feb 2012 05:24:40 GMT} Content-Type {application/json; charset=utf-8} Transfer-Encoding chunked Connection close ETag {"f4d9c33849d562f2b4bdefdebc8160da"} Cache-Control {max-age=0, private, must-revalidate} X-UA-Compatible IE=Edge
Response Body: {"name":"env-test4","staging":{"model":"perl","stack":"perl514"},"uris":["env-test4.stackato-ingy.local"],"instances":1,"runningInstances":0,"resources":{"memory":64,"disk":2048,"fds":256},"state":"STOPPED","services":[],"version":"a13928db3a0c0036e82626598624c917b0824bff-0","env":[],"meta":{"debug":null,"version":1,"created":1329888280},"services_connect_info":[]}
Request GET, application/json: http://api.stackato-ingy.local/apps/env%2Dtest4
Response Code: HTTP/1.1 200 OK
Response Code': 200
Response Status: ok
Response Error:
Response Headers: Server nginx/0.7.65 Date {Wed, 22 Feb 2012 05:24:40 GMT} Content-Type {application/json; charset=utf-8} Transfer-Encoding chunked Connection close ETag {"f4d9c33849d562f2b4bdefdebc8160da"} Cache-Control {max-age=0, private, must-revalidate} X-UA-Compatible IE=Edge
Response Body: {"name":"env-test4","staging":{"model":"perl","stack":"perl514"},"uris":["env-test4.stackato-ingy.local"],"instances":1,"runningInstances":0,"resources":{"memory":64,"disk":2048,"fds":256},"state":"STOPPED","services":[],"version":"a13928db3a0c0036e82626598624c917b0824bff-0","env":[],"meta":{"debug":null,"version":1,"created":1329888280},"services_connect_info":[]}
Staging Application [env-test4]:
Request PUT, application/json: http://api.stackato-ingy.local/apps/env%2Dtest4 -query {
"env" : [],
"instances" : "1",
"meta" : {
"created" : "1329888280",
"debug" : "null",
"version" : "1"
},
"name" : "env-test4",
"resources" : {
"disk" : "2048",
"fds" : "256",
"memory" : "64"
},
"runningInstances" : "0",
"services" : [],
"services_connect_info" : "",
"staging" : {
"model" : "perl",
"stack" : "perl514"
},
"state" : "STARTED",
"uris" : ["env-test4.stackato-ingy.local"],
"version" : "a13928db3a0c0036e82626598624c917b0824bff-0"
}
Response Code: HTTP/1.1 500 Internal Server Error
Response Code': 500
Response Status: ok
Response Error:
Response Headers: Server nginx/0.7.65 Date {Wed, 22 Feb 2012 05:25:08 GMT} Content-Type {application/json; charset=utf-8} Transfer-Encoding chunked Connection close Cache-Control no-cache X-UA-Compatible IE=Edge
Response Body: {"code":310,"description":"Failed to stage application:\n Unable to start this application. You need to either define 'stackato/processes/web' in manifest.yml, or define 'processes/web' in stackato.yml\n"}
Error 310: Failed to stage application:
Unable to start this application. You need to either define 'stackato/processes/web' in manifest.yml, or define 'processes/web' in stackato.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment