REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.50 KB
Close
//opt/cloudlinux/venv/lib/python3.11/site-packages/clselect/clselectnodejs/apps_manager.py
Text
Base64
# coding=utf-8 # Copyright © Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2019 All Rights Reserved # # Licensed under CLOUD LINUX LICENSE AGREEMENT # http://cloudlinux.com/docs/LICENSE.TXT from __future__ import print_function from __future__ import division from __future__ import absolute_import from clselect.baseclselect.apps_manager import BaseApplicationsManager from clselect.clselectnodejs.node_manager import NodeManager from clselect.clselectnodejsuser.environments import APP_CONFIG class ApplicationsManager(BaseApplicationsManager): _USER_CONFIG = '.cl.selector/node-selector.json' INTERPRETER = 'nodejs' VENV_DIR = 'nodevenv' BINARY_NAME = 'node' def __init__(self): super(ApplicationsManager, self).__init__(NodeManager()) def _find_config_files(self, user_name, app_directory, patterns=(APP_CONFIG,)): return super(ApplicationsManager, self)._find_config_files(user_name, app_directory, patterns=patterns) @staticmethod def get_interpreter_specific_passenger_lines(binary_path, app_config): """ Return lines for htaccess that are specific to the nodejs interpreter :param binary_path: path to the environment's node binary :param app_config: application's config dictionary """ specific_lines = [ 'PassengerNodejs "{}"\n'.format(binary_path), 'PassengerAppType node\n', 'PassengerStartupFile {}\n'.format(app_config['startup_file']), ] return specific_lines
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 1 × Files: 5
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
__pycache__
DIR
-
drwxr-xr-x
2026-03-25 07:03:01
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
apps_manager.py
1.50 KB
lrw-r--r--
2026-02-26 15:36:05
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
config.py
1.53 KB
lrw-r--r--
2026-02-26 15:36:05
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
node_manager.py
937 B
lrw-r--r--
2026-02-26 15:36:05
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
pkgmanager.py
3.51 KB
lrw-r--r--
2026-02-26 15:36:05
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
__init__.py
1.98 KB
lrw-r--r--
2026-02-26 15:36:05
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).