Automated heroku deploy from subfolder

后端 未结 3 1530
青春惊慌失措
青春惊慌失措 2021-01-30 16:57

I know you can deploy automatically to heroku from github, but I haven\'t found a way to only push a subfolder from github to heroku.

From the command-line I know it is

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-30 17:40

    What I did in order to have automatic deployments from a subfolder was to create a new branch in GitHub and push JUST the subfolder and then set Heroku to auto-deploy to that branch.

    Use git subtree push --prefix origin to push the subfolder into that branch

提交回复
热议问题