Skip to content

404 after deploying to Heroku #7

@ghost

Description

Getting bellow error when trying to access app via heroku url https://ofo-nodejs.herokuapp.com/

{"status":"Error","message":"Not Found","code":404,"stackTrace":"Error: Not Found\n    at new NotFound (/app/node_modules/express-simple-errors/lib/errors.js:74:11)\n    at handleNotFound (/app/node_modules/express-simple-errors/lib/errorHandler.js:77:12)\n    at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)\n    at trim_prefix (/app/node_modules/express/lib/router/index.js:317:13)\n    at /app/node_modules/express/lib/router/index.js:284:7\n    at Function.process_params (/app/node_modules/express/lib/router/index.js:335:12)\n    at next (/app/node_modules/express/lib/router/index.js:275:10)\n    at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:91:12)\n    at trim_prefix (/app/node_modules/express/lib/router/index.js:317:13)\n    at /app/node_modules/express/lib/router/index.js:284:7"}

I think it might be caused by "todoapp" POSTGRES values in codeship-services.yml or docker-compose.yml (that's another question, I can't figure out when is docker-compose.yml used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions