{"id":4062,"date":"2015-10-06T12:02:59","date_gmt":"2015-10-06T20:02:59","guid":{"rendered":"https:\/\/blog.mozilla.org\/webdev\/?p=4062"},"modified":"2015-10-06T12:02:59","modified_gmt":"2015-10-06T20:02:59","slug":"using-peep-on-heroku","status":"publish","type":"post","link":"https:\/\/blog.mozilla.org\/webdev\/2015\/10\/06\/using-peep-on-heroku\/","title":{"rendered":"Using peep on Heroku"},"content":{"rendered":"<p>I recently moved a Django app to Heroku which was using <code><a href=\"https:\/\/github.com\/erikrose\/peep\">peep<\/a><\/code>, rather than <code>pip<\/code>, for package installation. By default Heroku will use pip to install your required packages when it sees a <code>requirements.txt<\/code> file in the root of your project, and the option to use peep instead does not exist.<\/p>\n<p>Luckily one of my colleagues, <a href=\"https:\/\/mozillians.org\/u\/pmac\/\">pmac<\/a>, was kind enough to create a share a <a href=\"https:\/\/github.com\/pmclanahan\/heroku-buildpack-python-peep\">Heroku buildpack<\/a> which uses peep instead of pip for package installation. All you need to do to make use of this buildpack is issue the following command using the Heroku CLI for your app:<\/p>\n<p><code>heroku buildpacks:set https:\/\/github.com\/pmclanahan\/heroku-buildpack-python-peep<\/code><\/p>\n<p>Of course, make sure your <code>requirements.txt<\/code> is peep-compatible.<\/p>\n<p>Happy peeping!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently moved a Django app to Heroku which was using peep, rather than pip, for package installation. By default Heroku will use pip to install your required packages when it sees a requirements.txt file in the root of your &hellip; <a class=\"go\" href=\"https:\/\/blog.mozilla.org\/webdev\/2015\/10\/06\/using-peep-on-heroku\/\">Continue reading<\/a><\/p>\n","protected":false},"author":968,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[288],"tags":[],"coauthors":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Using peep on Heroku - Mozilla Web Development<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blog.mozilla.org\/webdev\/2015\/10\/06\/using-peep-on-heroku\/\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Bob Silverberg\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/blog.mozilla.org\/webdev\/2015\/10\/06\/using-peep-on-heroku\/\",\"url\":\"https:\/\/blog.mozilla.org\/webdev\/2015\/10\/06\/using-peep-on-heroku\/\",\"name\":\"Using peep on Heroku - Mozilla Web Development\",\"isPartOf\":{\"@id\":\"https:\/\/blog.mozilla.org\/webdev\/#website\"},\"datePublished\":\"2015-10-06T20:02:59+00:00\",\"dateModified\":\"2015-10-06T20:02:59+00:00\",\"author\":{\"@id\":\"https:\/\/blog.mozilla.org\/webdev\/#\/schema\/person\/9c71cb8972b2b32c4e0e99ede7dda544\"},\"breadcrumb\":{\"@id\":\"https:\/\/blog.mozilla.org\/webdev\/2015\/10\/06\/using-peep-on-heroku\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/blog.mozilla.org\/webdev\/2015\/10\/06\/using-peep-on-heroku\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/blog.mozilla.org\/webdev\/2015\/10\/06\/using-peep-on-heroku\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/blog.mozilla.org\/webdev\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Using peep on Heroku\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/blog.mozilla.org\/webdev\/#website\",\"url\":\"https:\/\/blog.mozilla.org\/webdev\/\",\"name\":\"Mozilla Web Development\",\"description\":\"For make benefit of glorious tubes\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/blog.mozilla.org\/webdev\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/blog.mozilla.org\/webdev\/#\/schema\/person\/9c71cb8972b2b32c4e0e99ede7dda544\",\"name\":\"Bob Silverberg\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/blog.mozilla.org\/webdev\/#\/schema\/person\/image\/57edf28f78ce35b8dbae314b80b97091\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1958743ac34aca5c4eaccda81833f54a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1958743ac34aca5c4eaccda81833f54a?s=96&d=mm&r=g\",\"caption\":\"Bob Silverberg\"},\"url\":\"https:\/\/blog.mozilla.org\/webdev\/author\/bsilverbergmozilla-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Using peep on Heroku - Mozilla Web Development","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/blog.mozilla.org\/webdev\/2015\/10\/06\/using-peep-on-heroku\/","twitter_misc":{"Written by":"Bob Silverberg","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/blog.mozilla.org\/webdev\/2015\/10\/06\/using-peep-on-heroku\/","url":"https:\/\/blog.mozilla.org\/webdev\/2015\/10\/06\/using-peep-on-heroku\/","name":"Using peep on Heroku - Mozilla Web Development","isPartOf":{"@id":"https:\/\/blog.mozilla.org\/webdev\/#website"},"datePublished":"2015-10-06T20:02:59+00:00","dateModified":"2015-10-06T20:02:59+00:00","author":{"@id":"https:\/\/blog.mozilla.org\/webdev\/#\/schema\/person\/9c71cb8972b2b32c4e0e99ede7dda544"},"breadcrumb":{"@id":"https:\/\/blog.mozilla.org\/webdev\/2015\/10\/06\/using-peep-on-heroku\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.mozilla.org\/webdev\/2015\/10\/06\/using-peep-on-heroku\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/blog.mozilla.org\/webdev\/2015\/10\/06\/using-peep-on-heroku\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/blog.mozilla.org\/webdev\/"},{"@type":"ListItem","position":2,"name":"Using peep on Heroku"}]},{"@type":"WebSite","@id":"https:\/\/blog.mozilla.org\/webdev\/#website","url":"https:\/\/blog.mozilla.org\/webdev\/","name":"Mozilla Web Development","description":"For make benefit of glorious tubes","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blog.mozilla.org\/webdev\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/blog.mozilla.org\/webdev\/#\/schema\/person\/9c71cb8972b2b32c4e0e99ede7dda544","name":"Bob Silverberg","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/blog.mozilla.org\/webdev\/#\/schema\/person\/image\/57edf28f78ce35b8dbae314b80b97091","url":"https:\/\/secure.gravatar.com\/avatar\/1958743ac34aca5c4eaccda81833f54a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1958743ac34aca5c4eaccda81833f54a?s=96&d=mm&r=g","caption":"Bob Silverberg"},"url":"https:\/\/blog.mozilla.org\/webdev\/author\/bsilverbergmozilla-com\/"}]}},"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/blog.mozilla.org\/webdev\/wp-json\/wp\/v2\/posts\/4062"}],"collection":[{"href":"https:\/\/blog.mozilla.org\/webdev\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.mozilla.org\/webdev\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/webdev\/wp-json\/wp\/v2\/users\/968"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/webdev\/wp-json\/wp\/v2\/comments?post=4062"}],"version-history":[{"count":0,"href":"https:\/\/blog.mozilla.org\/webdev\/wp-json\/wp\/v2\/posts\/4062\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.mozilla.org\/webdev\/wp-json\/wp\/v2\/media?parent=4062"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mozilla.org\/webdev\/wp-json\/wp\/v2\/categories?post=4062"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mozilla.org\/webdev\/wp-json\/wp\/v2\/tags?post=4062"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/blog.mozilla.org\/webdev\/wp-json\/wp\/v2\/coauthors?post=4062"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}