简体   繁体   中英

Running both Bundler and NPM on Heroku

I have a Node.js app that uses Compass, a Ruby gem.

When I push to Heroku it will detect a Node.js app and run npm install . Now, it detects the Gemfile first which it a ruby project and no longer runs npm install . Is it possible to tell Heroku this is a Node.js app which requires the Gemfile for running bundle exec install compass ?

You need to use a custom buildpack that supports both Ruby and Node. Take a look at third-party buildpacks and multi buildpacks .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM