From b9247d269222a7f4b76fc94258606542f19953fd Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Mon, 8 Aug 2016 21:58:23 +0800 Subject: [PATCH] multi-buildpack setup for heroku: $ heroku buildpacks:set https://github.com/heroku/heroku-buildpack-multi.git will set it up --- .buildpacks | 1 + lib/tasks/extensions.rake | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 lib/tasks/extensions.rake diff --git a/.buildpacks b/.buildpacks index ff2497d3..9fb12425 100644 --- a/.buildpacks +++ b/.buildpacks @@ -1 +1,2 @@ +https://github.com/heroku/heroku-buildpack-nodejs.git https://github.com/heroku/heroku-buildpack-ruby.git diff --git a/lib/tasks/extensions.rake b/lib/tasks/extensions.rake new file mode 100644 index 00000000..bf07cec2 --- /dev/null +++ b/lib/tasks/extensions.rake @@ -0,0 +1,8 @@ +namespace :assets do + task :js_compile do + system "npm install" + system "npm run build" + end +end + +Rake::Task[:'assets:precompile'].enhance([:'assets:js_compile'])