jincod / dotnetcore-buildpack

Heroku .NET Core Buildpack
MIT License
750 stars 360 forks source link

Using Buildpack for multiple projects. #165

Closed iamstan13y closed 2 years ago

iamstan13y commented 2 years ago

I need to understand what this means:

image

Does it mean I have to specify the project I want to build, and if so how do I so and where? I recently deployed 2 projects (Web APIs) on Heroku, projectA and projectB, and they're both using the same repo. Now the problem that arises is projectA is using projectB's files and vice-versa, such that after deployment I'm seeing the deployments vice-versa...

jincod commented 2 years ago

How to setup env vars https://devcenter.heroku.com/articles/config-vars

PROJECT_FILE and PROJECT_NAME allows specify project to deploy

PROJECT_FILE =/src/ProjectA/ProjectA.csproj PROJECT_NAME=ProjectA

iamstan13y commented 2 years ago

I think that's quite understandable. Saved hours of stabbing in the dark❤