Skip to content

Commit efcb8cc

Browse files
committed
moved to hcpp
1 parent 3eded78 commit efcb8cc

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ the NodeApp. Developers can hook and implement their own NodeApp using these act
7272
* **nodeapp_subfolder_nginx_conf** - *occurs before writing Nginx conf file for subfolder app hosting.*
7373
* **nodeapp_subfolder_nginx_ssl_conf** - *occurs before writing Nginx SSL conf file for subfolder app hosting.*
7474
* **nodeapp_resurrect_apps** - *occurs after system reboot and issues the command to restart PM2 apps.*
75-
* **nodeapp_nginx_reload** - *occurs before Nginx is reloaded after 5 second delay; allows filtering the command.*
7675

7776
## Support the creator
7877
You can help this author's open source development endeavors by donating any amount to Stephen J. Carnam @ Virtuosoft. Your donation, no matter how large or small helps pay for essential time and resources to create MIT and GPL licensed projects that you and the world can benefit from. Click the link below to donate today :)

nodeapp.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ public function __construct() {
2323
$hcpp->nodeapp = $this;
2424
$hcpp->add_action( 'priv_change_web_domain_proxy_tpl', [ $this, 'priv_change_web_domain_proxy_tpl' ] );
2525
$hcpp->add_action( 'pre_delete_web_domain_backend', [ $this, 'pre_delete_web_domain_backend' ] );
26-
$hcpp->add_action( 'post_restart_proxy', [ $this, 'post_restart_proxy' ], 50 );
2726
$hcpp->add_action( 'priv_suspend_web_domain', [ $this, 'priv_suspend_web_domain' ] );
2827
$hcpp->add_action( 'priv_unsuspend_domain', [ $this, 'priv_unsuspend_domain' ] );
2928
$hcpp->add_action( 'priv_update_sys_queue', [ $this, 'priv_update_sys_queue' ] );
@@ -139,16 +138,6 @@ public function pre_delete_web_domain_backend( $args ) {
139138
$this->shutdown_apps( $nodeapp_folder );
140139
}
141140

142-
/**
143-
* Ensure we reload nginx to read our NodeApp configurations
144-
*/
145-
public function post_restart_proxy() {
146-
global $hcpp;
147-
$cmd = '(sleep 5 && service nginx reload) > /dev/null 2>&1 &';
148-
$cmd = $hcpp->do_action( 'nodeapp_nginx_reload', $cmd );
149-
shell_exec( $cmd );
150-
}
151-
152141
/**
153142
* On domain suspend, shutdown apps
154143
*/

0 commit comments

Comments
 (0)