Heroku deploy a sub directory?

前端 未结 3 1738
夕颜
夕颜 2021-02-05 08:38

I\'m trying to deploy a node app, but I\'m running into a problem with how my code is structure. The app is git inited at the top level and it looks like:

App (         


        
3条回答
  •  耶瑟儿~
    2021-02-05 09:30

    Alternatively, you can use git subtree to create a heroku branch on GitHub:

    git subtree push --prefix server origin heroku
    

    which you can then deploy to Heroku using a Heroku Button. Just add an app.json and a README.md with the button to your server directory:

    [![Deploy](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy)
    

    Deploy

    and let Heroku take care of the rest.

提交回复
热议问题