configure script added, restart script added, uninstall script added, upgrade script added, config.py excluded from repository and added to .gitignore, install.py improved, generate nginx config fixed
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import config
|
||||
import powershell
|
||||
import os
|
||||
|
||||
deploy_path = config.deploy_path
|
||||
pm2_name = config.pm2_name
|
||||
|
||||
if os.path.isdir(deploy_path):
|
||||
powershell.run_command_no_dir('pm2 delete ' + pm2_name + '; rm "' + deploy_path + '" -r -force;')
|
||||
print('Package successfully uninstalled')
|
||||
else:
|
||||
print('Package not installed')
|
||||
Reference in New Issue
Block a user