How to deploy node app that uses grunt to heroku

前端 未结 7 2157
悲哀的现实
悲哀的现实 2020-11-29 17:20

I\'m using grunt and also grunt plugins like grunt-contrib-copy, grunt-contrib-mincss (that listed as npm dependencies for my application).

7条回答
  •  误落风尘
    2020-11-29 18:03

    This post is Rails-specific but I don't see why you couldn't use it with any back-end framework and just swap the Ruby buildpack with whatever you're using.

    The solution is basically to use multi buildpacks, and have the Node/Grunt buildpack run grunt build for you right on Heroku.

    Significantly, this solution does not have you check build artifacts into version control. (Yay!!!)

    http://www.angularonrails.com/deploy-angular-rails-single-page-application-heroku/

提交回复
热议问题