@xuda.io/drive_module 1.1.578 → 1.1.579

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +4 -9
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -2214,18 +2214,13 @@ const reset_deployment_cache = async function (datacenter_id) {
2214
2214
 
2215
2215
  for (let deployment of datacenter_deployments.rows) {
2216
2216
  if (deployment.value.app_status_code === 3) {
2217
+ const ssh = await get_ssh_connection(deployment.id);
2218
+ const host = `root@${deployment.value.app_hosting_server.ip}`;
2219
+
2217
2220
  await _utils.run_ssh_script(`
2218
2221
 
2219
2222
  ssh ${ssh} ${host} rm /var/xuda/cache/*;
2220
- ssh ${ssh} ${host} mkdir /var/xuda/plugins/${app_id_master};
2221
-
2222
- ssh ${ssh} ${host} mkdir /var/xuda/root;
2223
- ssh ${ssh} ${host} mkdir /var/xuda/root/dist;
2224
- ssh ${ssh} ${host} mkdir /var/xuda/root/dist/runtime;
2225
-
2226
- ssh ${ssh} ${host} mkdir /var/xuda/preview;
2227
- ssh ${ssh} ${host} mkdir /var/xuda/modules;
2228
- ssh ${ssh} ${host} mkdir /var/xuda/cache;
2223
+
2229
2224
  `);
2230
2225
  }
2231
2226
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.578",
3
+ "version": "1.1.579",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {