Error in Heroku "failed to compile Multipack app"

Asked 2 years ago, Updated 2 years ago, 96 views

It's only been half a year since I started studying programming. I am thinking of deploying Heroku+Rails+Grunt.

The other day you told me about this article (http://qiita.com/icb54615/items/e5d4db164c5002e4b183).

$git push heroku master
Fetching repository, done.
Counting objects:24, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (14/14), done.
Writing objects: 100% (24/24), 3.24 KiB | 0 bytes/s, done.
Total24(delta14), reused17(delta8)

----- > Fetching custom git buildpack ... done
----- > Multipack app detected
=====>Downloading Buildpack: https://github.com/getgamba/heroku-buildpack-nodejs-grunt-compass.git

 !     Push rejected, failed to compile Multipack app

The error appears.

I would appreciate your advice.

Thank you for your cooperation.

/root/.buildpacks

https://github.com/getgamba/heroku-buildpack-nodejs-grunt-compass.git
https://github.com/heroku/heroku-buildpack-ruby.git

/root/front/package.json

{
  "name": "front",
  "version": "0.0.0",
  "dependencies": {},
  "devDependencies": {
    "grunt": "^0.4.5",
    "grunt-autoprefixer": "^0.7.3",
    "grunt-concurrent": "^0.5.0",
    "grunt-connect-proxy": "^0.1.11",
    "grunt-contrib-clean": "^0.5.0",
    "grunt-contrib-compass": "^0.7.2",
    "grunt-contrib-concat": "^0.4.0",
    "grunt-contrib-connect": "^0.7.1",
    "grunt-contrib-copy": "^0.5.0",
    "grunt-contrib-cssmin": "^0.9.0",
    "grunt-contrib-htmlmin": "^0.3.0",
    "grunt-contrib-imagemin": "^0.8.1",
    "grunt-contrib-jshint": "^0.10.0",
    "grunt-contrib-uglify": "^0.4.0",
    "grunt-contrib-watch": "^0.6.1",
    "grunt-filerev": "^0.2.1",
    "grunt-google-cdn": "^0.4.0",
    "grunt-karma": "^0.10.1",
    "grunt-newer": "^0.7.0",
    "grunt-ng-annotate": "^0.4.0",
    "grunt-ngmin": "^0.0.3",
    "grunt-projector-runner": "^1.1.0",
    "grunt-rails-server": "^0.1.0",
    "grunt-shell-spawn": "^0.3.0",
    "grunt-svgmin": "^0.4.0",
    "grunt-usemin": "^2.1.1",
    "grunt-wiredep": "^1.7.0",
    "jasmine-core": "^2.1.3",
    "jshint-style": "^0.2.0",
    "karma": "^0.12.31",
    "karma-jasmine": "^0.3.4",
    "karma-phantomjs-launcher": "^0.1.4",
    "load-grunt-tasks": "^0.4.0",
    "source-map": "^0.1.37",
    "time-grunt": "^0.3.1"
  },
  "engines": {
    "node": ">=0.10.0"
  },
  "scripts": {
    "test": "grunt test"
  }
}

ruby-on-rails node.js heroku

2022-09-29 20:24

1 Answers

I had the same error, but it has been resolved, so I will share it with you.

https://github.com/getgamba/heroku-buildpack-nodejs-grunt-compass/blob/master/bin/detect
If you look at the nodejs buildpack code above, the nodejs app detects the directory named client.Therefore, I think it will be fixed if you change the name of the directory where the front-end application is placed from front to client.

Additional information

Heroku's multi-buildpack appears to be officially supported https://devcenter.heroku.com/articles/using-multiple-buildpacks-for-an-app
You may want to use this method.
Also, package.json will not be installed when you deploy unless you write dependencies on dependencies as well as devDependencies.


2022-09-29 20:24

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.