Coder Social home page Coder Social logo

null-buildpack's Introduction

Heroku Buildpack: Ø

Use Ø if you need Heroku to execute a binary.

Usage

Create a directory for our Heroku app:

$ mkdir -p myapp/bin
$ cd myapp

Here is an example of an executable that will run on 64bit linux machine:

$ echo -e "#\!/usr/bin/env bash\n echo hello world" > ./bin/program
$ echo -e "program: bin/program" > Procfile
$ chmod +x ./bin/program
$ ./bin/program
hello world

Push the app to Heroku and run our executable:

$ git init; git add .; git commit -am 'init'
$ heroku create --buildpack http://github.com/ryandotsmith/null-buildpack.git
$ git push heroku master
$ heroku run program
Running `program` attached to terminal... up, run.8663
hello world

Motivation

I wanted to run various executables (e.g. log-shuttle) on Heroku without compiling them on Heroku. Thus, I compile programs on my linux 64 machine, or fetch the binary from the project, commit them to a repo and then run them on Heroku with the Ø buildpack.

Issues

You will need to make sure that a 64bit linux machine can execute the binary.

null-buildpack's People

Contributors

ddollar avatar michaelfairley avatar onsi avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.