forked from EasyEngine/service-command
-
Notifications
You must be signed in to change notification settings - Fork 0
/
service-command.php
48 lines (36 loc) · 1.15 KB
/
service-command.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
if ( ! defined( 'SERVICE_TEMPLATE_ROOT' ) ) {
define( 'SERVICE_TEMPLATE_ROOT', __DIR__ . '/templates' );
}
if ( ! defined( 'GLOBAL_DB' ) ) {
define( 'GLOBAL_DB', 'global-db' );
}
if ( ! defined( 'GLOBAL_DB_CONTAINER' ) ) {
define( 'GLOBAL_DB_CONTAINER', 'services_global-db_1' );
}
if ( ! defined( 'GLOBAL_PROXY_CONTAINER' ) ) {
define( 'GLOBAL_PROXY_CONTAINER', 'services_global-nginx-proxy_1' );
}
if ( ! defined( 'GLOBAL_FRONTEND_NETWORK' ) ) {
define( 'GLOBAL_FRONTEND_NETWORK', 'ee-global-frontend-network' );
}
if ( ! defined( 'GLOBAL_BACKEND_NETWORK' ) ) {
define( 'GLOBAL_BACKEND_NETWORK', 'ee-global-backend-network' );
}
if ( ! defined( 'GLOBAL_REDIS' ) ) {
define( 'GLOBAL_REDIS', 'global-redis' );
}
if ( ! defined( 'GLOBAL_REDIS_CONTAINER' ) ) {
define( 'GLOBAL_REDIS_CONTAINER', 'services_global-redis_1' );
}
if ( ! defined( 'GLOBAL_NEWRELIC_DAEMON' ) ) {
define( 'GLOBAL_NEWRELIC_DAEMON', 'global-newrelic-daemon' );
}
if ( ! class_exists( 'EE' ) ) {
return;
}
$autoload = dirname( __FILE__ ) . '/vendor/autoload.php';
if ( file_exists( $autoload ) ) {
require_once $autoload;
}
EE::add_command( 'service', 'Service_Command' );