subdir-heroku-buildpack icon indicating copy to clipboard operation
subdir-heroku-buildpack copied to clipboard

Everything but project root deleted

Open yowzadave opened this issue 4 years ago • 2 comments

Set PROJECT_PATH environment variable to point to project root. It will be promoted to slug's root, everything else will be erased.

This doesn't work for my project—I have a server in backend, and static files in frontend that I'd like the server to be able to run. But using this buildpack causes everything in frontend to be deleted. Is this just an unsolvable Heroku limitation?

yowzadave avatar Oct 10 '19 15:10 yowzadave

@yowzadave did you end up just moving your assets to backend?

joeyfigaro avatar Mar 31 '21 01:03 joeyfigaro

Hi @joeyfigaro -- I realized I didn't need this buildpack. The solution for me was to just use the --prefix flag when running my start script:

npm start --prefix path/to/your/app

Hope this helps!

yowzadave avatar Mar 31 '21 23:03 yowzadave