Deploying a favicon on Heroku using Node.js and express seems to crash the app -
i have standard line in index.js (using serve-favicon module):
app.use(favicon(path.join(__dirname, 'public', 'favicon.ico')));
and have favicon.ico in /public
directory. favicon deploys fine locally, when push heroku, entire app can't served. feedback i'm getting heroku @ logs, show successful build/deploy.
any idea what's here?
edit: here's requested package.json:
{ "name": "requesttest", "version": "0.0.0", "private": true, "scripts": { "start": "node ./bin/www" }, "dependencies": { "body-parser": "~1.17.1", "cookie-parser": "~1.4.3", "debug": "~2.6.3", "events": "^1.1.1", "express": "~4.15.2", "morgan": "~1.8.1", "pug": "~2.0.0-beta11", "request": "^2.81.0", "request-promise": "^4.2.1", "serve-favicon": "~2.4.2", "xml2js": "^0.4.17" } }
i forgot git add favicon file. oops.
Comments
Post a Comment