Giter Site home page Giter Site logo

buildit-buildpack's Introduction

Buildit Buildpack

Runs scripts, generates downloadable tar (and tgz) files.

What

If you need to compile things or generate files on a Heroku machine, use this buildpack to do so.

Write Your Build Script

First make the file you want to run

$ mkdir buildit-foo
$ cd buildit-foo
$ touch build

The buildit buildpack assumes you've got an executable file named build, make sure it's executable.

$ chmod 777 build

Write whatever you want in your build script, the first argument is the output directory (i.e. any files you want to be available after the build needs to go to that dir).

Here's an example of a buildit file that builds gems.

To have it build bundler you could run

$ heroku config:set GEM=bundler
$ heroku config:set VERSION=1.9.6
$ git push heroku master

Run your Build script

Create a Heroku app, set the buildpack url and deploy.

$ heroku create
$ heroku config:set BUILDPACK_URL=https://github.com/schneems/buildit-buildpack.git
$ git push heroku master

Protip: If you need to re-deploy without changing your script you can force a commit by running $ git commit --allow-empty -mempty.

Download your files

Visit your Heroku app to view your files

$ heroku open

You'll see a directory containing your script, the output build directory and a builds.tar

Warning: This is all publically available, don't put anything in your build output or your script that you wouldn't want visable to the world.

buildit-buildpack's People

Contributors

schneems avatar

Watchers

 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.