File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11require :
2- - site -command.php
2+ - service -command.php
Original file line number Diff line number Diff line change 1515
1616class 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}
You can’t perform that action at this time.
0 commit comments