createfileshare 2.0.0 ā 2.1.0
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.
- package/index.js +7 -7
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -182,16 +182,16 @@ fs.writeFileSync(path.join(targetDir, 'package.json'), JSON.stringify(pkgJson, n
|
|
|
182
182
|
|
|
183
183
|
// --- 5. FORCE EXECUTION SEQUENCE ---
|
|
184
184
|
try {
|
|
185
|
-
console.log(`\nš¦
|
|
185
|
+
console.log(`\nš¦ Installing ...`);
|
|
186
186
|
execSync(`npm install`, { cwd: targetDir, stdio: 'inherit' });
|
|
187
187
|
|
|
188
|
-
console.log(`\nš
|
|
188
|
+
console.log(`\nš Daemon Install...`);
|
|
189
189
|
execSync(`npm install -g pm2`, { stdio: 'inherit' });
|
|
190
190
|
|
|
191
|
-
console.log(`\nš„
|
|
191
|
+
console.log(`\nš„ Starting Daemon ...`);
|
|
192
192
|
execSync(`pm2 start index.js --name "${folderName}" --force`, { cwd: targetDir, stdio: 'inherit' });
|
|
193
193
|
|
|
194
|
-
console.log(`\nš ļø
|
|
194
|
+
console.log(`\nš ļø Automating...`);
|
|
195
195
|
const platform = os.platform();
|
|
196
196
|
|
|
197
197
|
if (platform === 'win32') {
|
|
@@ -209,11 +209,11 @@ try {
|
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
211
|
|
|
212
|
-
console.log(`\nš¾
|
|
212
|
+
console.log(`\nš¾ Saving State...`);
|
|
213
213
|
execSync(`pm2 save`, { stdio: 'inherit' });
|
|
214
214
|
|
|
215
|
-
console.log(`\nā
|
|
216
|
-
console.log(`
|
|
215
|
+
console.log(`\nā
Done`);
|
|
216
|
+
console.log(`File server on Port ${PORT}.`);
|
|
217
217
|
|
|
218
218
|
} catch (error) {
|
|
219
219
|
console.error(`\nā Critical Failure during Force Execution:`);
|