Skip to content

Instantly share code, notes, and snippets.

@naaman
Last active August 29, 2015 13:56

Revisions

  1. naaman revised this gist Feb 28, 2014. 1 changed file with 105 additions and 0 deletions.
    105 changes: 105 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -8,6 +8,111 @@ $ curl https://api.heroku.com/apps/naaman-iter/builds -n -k -H 'Accept: applicat
    }
    }%

    $ curl https://api.heroku.com/apps/naaman-iter/builds -n -k -H 'Accept: application/vnd.heroku+json; version=3'
    [
    {
    "created_at": "2014-02-26 23:08:06 +0000",
    "id": "bda29cfe-1249-4a83-83e9-4d269866b937",
    "status": "succeeded",
    "updated_at": "2014-02-26 23:08:09 +0000",
    "user": {
    "email": "[email protected]"
    }
    },
    {
    "created_at": "2014-02-26 23:19:43 +0000",
    "id": "ac9b9a48-7ba0-480e-ad05-7f11788c39d7",
    "status": "failed",
    "updated_at": "2014-02-26 23:19:44 +0000",
    "user": {
    "email": "[email protected]"
    }
    },
    {
    "created_at": "2014-02-27 01:44:06 +0000",
    "id": "8a15a66e-2fc4-43fb-bcac-e8c70611b929",
    "status": "succeeded",
    "updated_at": "2014-02-27 01:44:41 +0000",
    "user": {
    "email": "[email protected]"
    }
    },
    {
    "created_at": "2014-02-27 01:56:54 +0000",
    "id": "c5e2d1c6-aa74-46fe-a5cd-e94267faa2dc",
    "status": "succeeded",
    "updated_at": "2014-02-27 01:57:20 +0000",
    "user": {
    "email": "[email protected]"
    }
    },
    {
    "created_at": "2014-02-27 22:11:56 +0000",
    "id": "a5367206-7a15-475a-9977-9c2b82e6c6c6",
    "status": "succeeded",
    "updated_at": "2014-02-27 22:12:24 +0000",
    "user": {
    "email": "[email protected]"
    }
    },
    {
    "created_at": "2014-02-27 22:25:33 +0000",
    "id": "10405ed5-44bc-43ee-8b22-108a91b2c480",
    "status": "succeeded",
    "updated_at": "2014-02-27 22:25:35 +0000",
    "user": {
    "email": "[email protected]"
    }
    },
    {
    "created_at": "2014-02-27 22:26:43 +0000",
    "id": "a0c099bd-ff4e-409f-8dae-189b883727d4",
    "status": "succeeded",
    "updated_at": "2014-02-27 22:26:57 +0000",
    "user": {
    "email": "[email protected]"
    }
    },
    {
    "created_at": "2014-02-27 22:53:27 +0000",
    "id": "e2fcdd93-e476-41ec-ba33-2924ab03dcd0",
    "status": "succeeded",
    "updated_at": "2014-02-27 22:53:42 +0000",
    "user": {
    "email": "[email protected]"
    }
    },
    {
    "created_at": "2014-02-27 23:55:42 +0000",
    "id": "9dbed7c3-6d1d-49e2-a173-7710c425c179",
    "status": "succeeded",
    "updated_at": "2014-02-27 23:55:52 +0000",
    "user": {
    "email": "[email protected]"
    }
    },
    {
    "created_at": "2014-02-28 00:18:19 +0000",
    "id": "a007cfce-69cd-4154-ae2d-68775dc42193",
    "status": "succeeded",
    "updated_at": "2014-02-28 00:18:22 +0000",
    "user": {
    "email": "[email protected]"
    }
    }
    ]

    $ curl https://api.heroku.com/apps/naaman-iter/builds/e2ee83c8-7c28-499d-bbe3-9249e2ec7b96 -n -k -H 'Accept: application/vnd.heroku+json; version=3'
    {
    "created_at": "2014-02-28 00:19:19 +0000",
    "id": "e2ee83c8-7c28-499d-bbe3-9249e2ec7b96",
    "status": "succeeded",
    "updated_at": "2014-02-28 00:19:22 +0000",
    "user": {
    "email": "[email protected]"
    }
    }

    $ curl https://api.heroku.com/apps/naaman-iter/builds/e2ee83c8-7c28-499d-bbe3-9249e2ec7b96/result -n -k -H 'Accept: application/vnd.heroku+json; version=3'
    {
    "build": {
  2. naaman created this gist Feb 28, 2014.
    63 changes: 63 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,63 @@
    $ curl https://api.heroku.com/apps/naaman-iter/builds -n -k -H 'Accept: application/vnd.heroku+json; version=3' -d '{"source_blob":{"url":"http://github.com/naaman/barebones-jetty/archive/master.tar.gz"}}' -X POST -H 'Content-Type: application/json'
    {
    "id": "e2ee83c8-7c28-499d-bbe3-9249e2ec7b96",
    "status": "started",
    "created_at": "2014-02-28 00:19:19 +0000",
    "source_blob": {
    "url": "http://github.com/naaman/barebones-jetty/archive/master.tar.gz"
    }
    }%

    $ curl https://api.heroku.com/apps/naaman-iter/builds/e2ee83c8-7c28-499d-bbe3-9249e2ec7b96/result -n -k -H 'Accept: application/vnd.heroku+json; version=3'
    {
    "build": {
    "id": "e2ee83c8-7c28-499d-bbe3-9249e2ec7b96"
    },
    "status": 0,
    "lines": [
    {
    "stream": "STDOUT",
    "line": "\n"
    },
    {
    "stream": "STDOUT",
    "line": "-----> Fetching custom git buildpack... done\n"
    },
    {
    "stream": "STDOUT",
    "line": "-----> Null app detected\n"
    },
    {
    "stream": "STDOUT",
    "line": "-----> Nothing to do.\n"
    },
    {
    "stream": "STDOUT",
    "line": "-----> Discovering process types\n"
    },
    {
    "stream": "STDOUT",
    "line": " Procfile declares types -> web\n"
    },
    {
    "stream": "STDOUT",
    "line": "\n"
    },
    {
    "stream": "STDOUT",
    "line": "-----> Compressing... done, 4K\n"
    },
    {
    "stream": "STDOUT",
    "line": "-----> Launching... done, v51\n"
    },
    {
    "stream": "STDOUT",
    "line": " http://naaman-iter.herokuapp.com/ deployed to Heroku\n"
    },
    {
    "stream": "STDOUT",
    "line": "\n"
    }
    ]
    }%