GithubHelp home page GithubHelp logo

unfold / env-buildpack Goto Github PK

View Code? Open in Web Editor NEW

This project forked from loadsmart/env-buildpack

0.0 1.0 0.0 22 KB

Make selected environment variables available in compile phase

License: MIT License

Shell 92.35% Makefile 7.65%

env-buildpack's Introduction

env-buildpack

Heroku buildpack to make environment variables available in build time.

How to use it

Create a .env-export file at the repository root and list the variables you want to export (one per line):

$ cat .env-export
MY_FIRST_VAR
ANOTHER_RANDOM_VAR

Add this buildpack to your app. Make sure this is the first buildpack in the buildpack list.

$ heroku buildpacks:add --index 1 --app my-app https://github.com/unfold/env-buildpack

Done! Next time you deploy your code, the variables you specified in the .env-export file will be available in the compile phase.

Note: Although you can export (almost) any variable, avoid exporting any variable that could result in a side-effect during build phase.

Development

We use heroku-buildpack-testrunner to test the project. The test command will clone the repository automatically and will run the tests:

# This will clone the heroku-buildpack-testrunner
$ make test

Contributing

If you make changes to the buildpack that you think will benefit others, please send a Pull Request. Just make sure that the tests passed before opening it.

License

This work is licensed under MIT License.

Copyright (c) 2017 Loadsmart, Inc.

env-buildpack's People

Contributors

barbosa avatar rcmachado 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.