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:
C
2023-02-13 15:56:02 +05:00
parent 895e3b6baa
commit 5b43eba14f
14 changed files with 169 additions and 108 deletions
+12
View File
@@ -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')