cPanel and Passenger #3394
mcqueena9845
announced in
Archive
Replies: 3 comments 8 replies
-
I gave up on this and ended up with a standalone server. |
Beta Was this translation helpful? Give feedback.
0 replies
-
If someone else is looking for this: I’ve never used cPanel, but it should be the same as with plesk and Phusion. All you need is creating a start-file and an empty folder for the root directory in the main directory like this one const { default: logger } = require('directus/dist/logger');
const { default: start } = require('directus/dist/start');
start().catch(function(err) {
logger.error("Error", { err });
}); Source: [Official Discord] (https://discord.com/channels/725371605378924594/741330910594465823/789131069962059793) |
Beta Was this translation helpful? Give feedback.
8 replies
-
As of the changeover to node 18 as a requirement @Dominic-Marcelino 's solution does not seem to work on WHM/passenger does anyone have the new needed entrypoint script for this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm new to Directus and Nodejs. I'm trying to get Directus running on cPanel with CentOS 7. Nodejs is up and working. I can create and register a sample app like this: https://docs.cpanel.net/knowledge-base/web-services/how-to-install-a-node.js-application/. I'm able to do the manual install of directus with npm, and register it with the Application Manager. https://docs.cpanel.net/cpanel/software/application-manager/ I added the Environment Variables in the Application Manager. The Application Manager is able to verify the dependencies for Directus. My understanding is that this uses Phusion Passenger. Passenber is looking for an app.js file in my application root. What do I put in the app.js file to start Directus with Passenger?
Beta Was this translation helpful? Give feedback.
All reactions