heroku / heroku/heroku-buildpack-nodejs
Support running an app from a subdirectory
- Dominant language
- Shell
- Stars
- 1.3k
- Forks
- 2.6k
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 30
Description
There is currently no supported way to run a node app from a directory within your git repo. You can work around it most of the time by using `git subtree push` but that wouldn't work if you have shared code outside of your directory.
A super common situation is to have the following repo structure:
```
├── shared-code
├── server
└── frontend-app
```
Being able to direct the buildpack to look in `/server` instead of `/` would be helpful for cases like this.
Contributor guide
Research direction
Start by reviewing the buildpack entry points and existing tests that determine the application root, then inspect how the repository currently assumes the root directory. Confirm the expected behavior for a repository containing shared-code, server, and frontend-app, and treat the issue discussion as context for the unresolved design.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nodejs, shell
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100