Since you are running cPanel, its highly likely that you are not running a debian based operating system, since it only support redhat based systems, since MeteorUP relies on the apt
command, and thats only available on debian based systems, MeteorUP will not work.
To run your app in production you can use systemd:
[Service]
ExecStart=[path_to_your_meteor_cmd] [path_to_your_app]
Restart=always
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=[your_app_name]
User=[user_it_runs_under]
Group=[group_it_runs_under]
Environment=NODE_ENV=production
[Install]
WantedBy=multi-user.target
save it as [your_app_name].service
and after you replaced every []
with correct values, place the script in /etc/systemd/system/
, then run the commands systemctl enable [appname].service
and systemctl start [appname].service
, the enable will start your app automatically after a reboot/crash.
Here is mine for reference:
[Service]
ExecStart=/usr/local/bin/meteor /home/meteor-run/spottr/
Restart=always
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=spottr
User=spottr
Group=spottr
Environment=NODE_ENV=production
[Install]
WantedBy=multi-user.target