Description
This function lists all of the cPanel account's Ruby on Rails applications.
Warning:
We strongly recommend that you use UAPI instead of cPanel API 2. However, no equivalent UAPI function exists.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
This function does not accept parameters.
Returns
Return |
Type |
Description |
Possible values |
Example |
env |
string |
The application's environment. |
|
development |
name |
string |
The application's name. |
A valid string. |
Test |
path |
string |
The application's file path. |
A valid file path, relative to the cPanel account's home directory, |
/rails_apps/Test |
running |
Boolean |
Whether the application is currently active. |
|
1 |
port |
integer |
The application's port number. |
A positive integer. |
12001 |
pid |
integer |
The application's process ID. |
A positive integer. |
18613 |
production |
Boolean |
Whether the application is in production or development mode. |
|
0 |
loadonboot |
Boolean |
Whether to load the application on boot. |
|
0 |
reason |
string |
A reason for failure. Note: This function only returns areason value if it failed. |
A string that describes the error. |
This is an error message. |
result |
Boolean |
Whether the function succeeded. |
|
1 |