NodeJS Virtual Environment
When entering the NodeJS Virtual Environment, have it automatically change directory to the apps document root.
Also when entering the virtual environment, if you are logged in as an elevated user, have it perform the commands as the the user the app belongs to automatically. I realize this might not be possible, but it would be nice because using NodeJS means you must enable shell for that user and with cPanel, that means you need to enable shell for many or all of the accounts on the server.
-
Ryan Leadenham commented
Yes, essentially that idea, but done in a way that allows me to type in the commands normally... like "npm install mysql"
-
Anton Volkov commented
Hi!
When root executes cloudlinux-selector utility to manage user's application, cloudlinux-selector switches to that user (drops permissions) automatically.
Is this the same as you have requested?