Replies: 5 comments 4 replies
-
Hi Jonathan! When I wrote these instructions, the Can you share which base image you are using in Heroku? That way we can add a note in the docs mentioning that. |
Beta Was this translation helpful? Give feedback.
-
Why exactly is this? It doesn't seem to make any difference on my staging Heroku app where I've been testing. Just curious to know if I should do it for production! |
Beta Was this translation helpful? Give feedback.
-
It seems preferrable anyway to use the actual buildpack - https://devcenter.heroku.com/articles/ruby-support#installed-binaries |
Beta Was this translation helpful? Give feedback.
-
Also it seems super confusing as |
Beta Was this translation helpful? Give feedback.
-
Hey @ElMassimo I just tried and it definitely seems
WIth that said I saw this stuff, I wasn't sure if this is something to worry about? Sorry to hijack this issue it just seems related
|
Beta Was this translation helpful? Give feedback.
-
There are some heroku-specific instructions in the Deploying docs: https://vite-ruby.netlify.app/guide/deployment.html#using-heroku
However, I have found it is not in fact necessary to add the heroku
nodejs
buildpack.I can deploy my heroku app that only has the
ruby
buildpack, and everything seems to deploy and vite JS gets built, no problem. In my experience, it does not seem necessary to have any specific instructions for heroku and vite.If you do add the nodejs buildpack, then it's possible you need to set
NPM_CONFIG_INCLUDE
and/orYARN_PRODUCTION
as documented. But with just the ruby buildpack, and without setting these values, my app is deploying just fine.Eg
Beta Was this translation helpful? Give feedback.
All reactions