Launch Meteor App with Supervisord

I want to launch Telescope , create an application with Meteor . But when I run it with Supervisord, I have this error in the log file:

/usr/local/bin/meteor: line 34: HOME: unbound variable

This is my supervisord configuration file:

[program:news]
directory=/srv/telescope
command=/usr/local/bin/meteor
autorestart=true
redirect_stderr=true

How to start Meteor app with Supervisord?

Thank.

+4
source share
1 answer

When a supervisor starts a process, it does not set environment variables. It looks like a meteorite or telescope requires setting the HOME variable. You can fix this using environmentyour supervisor configuration:

[program:news]
directory=/srv/telescope
command=/usr/local/bin/meteor
autorestart=true
redirect_stderr=true
environment=HOME="/home/ubuntu"

.

+3

Source: https://habr.com/ru/post/1548525/


All Articles