Skip to content

Getting Error: Unable to initialize Errsole on AWS EC2 instance #122

Answered by armandov91
armandov91 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi thank for your reply, yes this was all working properly. For some reason when using pm2 errsole or pg was not reading my .env file properly. I had to create a ecosystem.config.js file and add the env path in there so errsole could consume properly..

PM2 ecosystem.config.js

module.exports = {
  apps : [{
    script: 'server.js',
    watch: '.',
	env_file: ".env" // my env file in root path but you can put your /custom/path
  }],
};

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@armandov91
Comment options

Answer selected by armandov91
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants