Skip to content

Commit 0a8914f

Browse files
committed
Make changes to ee.yml
1 parent 7b9882c commit 0a8914f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

ee.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
require:
2-
- site-command.php
2+
- service-command.php

src/Service_Command.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,33 +15,33 @@
1515

1616
class Service_Command extends EE_Command {
1717

18-
private $container_name = 'ee-nginx-proxy';
18+
private $global_container_name = 'ee-nginx-proxy';
1919
/**
2020
* Starts global reverse proxy container.
2121
*/
2222
public function start( $cmd, $descriptors = null ) {
23-
\EE\Utils\default_launch( "docker start $this->container_name" );
23+
\EE\Utils\default_launch( "docker start $this->global_container_name" );
2424
}
2525

2626
/**
2727
* Stops global reverse proxy container.
2828
*/
2929
public function stop( $cmd, $descriptors = null ) {
30-
\EE\Utils\default_launch( "docker stop $this->container_name" );
30+
\EE\Utils\default_launch( "docker stop $this->global_container_name" );
3131
}
3232

3333
/**
3434
* Restarts global reverse proxy container.
3535
*/
3636
public function restart( $cmd, $descriptors = null ) {
37-
\EE\Utils\default_launch( "docker restart $this->container_name" );
37+
\EE\Utils\default_launch( "docker restart $this->global_container_name" );
3838
}
3939

4040
/**
4141
* Reloads global reverse proxy service without .
4242
*/
4343
public function reload( $cmd, $descriptors = null ) {
44-
\EE\Utils\default_launch( "docker exec $this->container_name sh -c 'nginx -t && service nginx reload'" );
44+
\EE\Utils\default_launch( "docker exec $this->global_container_name sh -c 'nginx -t && service nginx reload'" );
4545
}
4646

4747
}

0 commit comments

Comments
 (0)