Coder Social home page Coder Social logo

sudo_set_config_var_buildpack's Introduction

Sudo Set Config Var Buildpack

For safety reasons buildpacks use a denylist for config vars. Also buildpacks rely on env vars from their runner (Codon on Heroku) for internal features. You cannot set denylist config vars or use config vars to modify "internal" enviornment variable, but you can with t his buildpack.

This buildpack allows you to set any global environment variable you want. Add it as your first buildpack, then set the environment variable you desire:

heroku config:set __SUDO_PATH=this/would/break/everything

This buildpack will strip off the __SUDO_ of the beginning of the environment variable and export PATH=this/would/break/everything so the next buildpack picks it up.

Why would you want that behavior? It allows the ability to test a different S3 bucket in the Ruby buildpack for example https://github.com/heroku/heroku-buildpack-ruby/blob/125191fdf57bf80f0cebf1f2d6009f77be6ae99a/lib/language_pack/base.rb#L21.

This buildpack is not designed for production use, it should only ever be used for testing and staging. Use of this buildpack will effectively break any support context with another buildpack. For example if you're using this in production along with the heroku/ruby buildpack, you would need to reproduce the problem without this buildpack before your Heroku could provide support to your application.

sudo_set_config_var_buildpack's People

Contributors

schneems avatar

Watchers

 avatar

Forkers

isabella232

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.