Giter Site home page Giter Site logo

whisthq / subdir-heroku-buildpack Goto Github PK

View Code? Open in Web Editor NEW

This project forked from timanovsky/subdir-heroku-buildpack

0.0 1.0 0.0 14 KB

Allows use of a subdirectory configured via environment variable as a project root for Heroku

Home Page: https://github.com/timanovsky/subdir-heroku-buildpack

Shell 100.00%
heroku monorepo buildpack

subdir-heroku-buildpack's Introduction

Whist Heroku Subdirectory Buildpack

This buildpack is used to deploy an application to Heroku from a subdirectory of a git repository, rather than from the repository root. It is based on timanovsky's subdir-heroku-buildpack.

When this buildpack is set to be the first buildpack in the Heroku build chain, application deployment from a subdirectory happens in three steps:

  1. The contents of the directory specified by PROJECT_PATH are saved in a temporary location.
  2. All non-hidden files are deleted from the repository root.
  3. The contents of the temporary directory are copied into the repository root.

Usage

Add this buildpack as the first (or one of the first) buildpacks in your application's build chain. It must certainly appear before any buildpacks that expect to be able to operate on the root directory. You must also set the PROJECT_PATH configuration variable on your application to indicate the subdirectory to deploy.

To prepend this buildpack to your application's build chain, run the command:

heroku buildpacks:add --index=1 --app=<your-app-name> https://github.com/whisthq/subdir-heroku-buildpack.git

To set the PROJECT_PATH configuration variable, run the command:

heroku config:set --app=<your-app-name> PROJECT_PATH=<path/to/subdirectory>

subdir-heroku-buildpack's People

Contributors

timanovsky avatar owenniles avatar philippemnoel avatar edmorley avatar renovate[bot] 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.