Introduction
The cPanel Application Manager allows for deploying multiple Web Apps using backend languages other than PHP, such as NodeJS and Ruby. The Application Manager allows end users to deploy these applications without system level access to the Apache Server configuration, or without requiring complex port mappings.
After deploying an application, viewing logs is important for ensuring your application functions properly.
You can view the output of NodeJS's console.log within the standard Apache error_log.
Procedure
The mod_passenger module that cPanel makes use of will publish the output from console.log to the Apache error log.
The main Apache log can be monitored via the command line as the root user:
tail -fn0 /etc/apache2/logs/error_log
Then, visit the domain that your Node.JS application is setup on to make mod_passenger execute your code and print to the Apache log.
Alternatively, logs are output to user directories:
Comments
0 comments
Article is closed for comments.