Here are the logs for my application:
2018-07-19T01:40:27.548845+00:00 app[web.1]: at Object.<anonymous> (/app/node_modules/bcrypt/bcrypt.js:6:16)
2018-07-19T01:40:27.548847+00:00 app[web.1]: at Module._compile (module.js:652:30)
2018-07-19T01:40:27.548850+00:00 app[web.1]: at Module.load (module.js:565:32)
...
Below is the content of my Procfile:
web: node app.js
This is what my app.js file looks like:
var express = require('express');
var path = require('path');
var cookieParser = require('cookie-parser');
...
module.exports = app;
Here is a snippet from my package.json file:
{
"name": "main-accounting-app",
"version": "1.0.0",
...
}
And this is part of the code in my Angular service auth file:
this.http.post('' + this.domain + 'users/register', newUser, {headers: headers}).pipe(map(res => res.json()));
In production, the value of this.domain is an empty string. I have checked all configurations and ports, but I am still facing issues. Running locally using heroku works fine without errors. Any insights or suggestions on how to resolve this issue would be greatly appreciated.