How to get Heroku to recognize a yarn.lock or package.json within a subdirectory (not root)

后端 未结 6 2228
终归单人心
终归单人心 2021-02-19 10:11

I have a Rails application using React, Webpack, and Yarn for the client side. I have everything relating to the client side within the /client directory. This includes my yarn.

6条回答
  •  难免孤独
    2021-02-19 10:43

    You can keep both package.json and yarn.lock by adding one of these to .slugignore.

    It works like .gitignore - it just defines which files to ignore pushing to Heroku.

    Check more information here

提交回复
热议问题