From db6c367affaf6094513f5f20ba2970e01bc75655 Mon Sep 17 00:00:00 2001 From: Moncef Belyamani Date: Tue, 3 Apr 2018 22:38:38 -0400 Subject: [PATCH] Add Heroku nodejs buildpack **Why**: After upgrading to the latest webpacker, assets failed to compile on Heroku. This issue says you need to add the nodejs buildpack: https://github.com/rails/webpacker/issues/739 Make sure the nodejs buildpack comes before the ruby one. I also removed unnecessary items from app.json. --- app.json | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/app.json b/app.json index 021d448bb..17d33d45e 100644 --- a/app.json +++ b/app.json @@ -24,9 +24,6 @@ "GOOGLE_ANALYTICS_ID": { "required": true }, - "HEROKU_POSTGRESQL_RED_URL": { - "required": true - }, "LANG": { "required": true }, @@ -42,15 +39,6 @@ "MEMCACHIER_USERNAME": { "required": true }, - "NEW_RELIC_APP_NAME": { - "required": true - }, - "NEW_RELIC_LICENSE_KEY": { - "required": true - }, - "NEW_RELIC_LOG": { - "required": true - }, "OHANA_API_ENDPOINT": { "required": true }, @@ -83,14 +71,12 @@ } }, "addons": [ - "logentries", - "newrelic", "memcachier", - "heroku-postgresql", "sendgrid" ], "buildpacks": [ { + "url": "heroku/nodejs", "url": "heroku/ruby" } ]