miolo 2.0.0-beta.6 → 2.0.0-beta.7
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/bin/restart.mjs +3 -3
- package/bin/start.mjs +1 -1
- package/bin/stop.mjs +1 -1
- package/package.json +1 -1
package/bin/restart.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import start from "./start.mjs"
|
|
2
2
|
import stop from "./stop.mjs"
|
|
3
3
|
|
|
4
|
-
export default async function(appName, dest, serverName) {
|
|
4
|
+
export default async function({appName, dest, serverName}) {
|
|
5
5
|
console.log(`[${appName}][prod][stop] Restarting server...`)
|
|
6
6
|
|
|
7
|
-
await stop(appName)
|
|
8
|
-
await start(appName, dest, serverName)
|
|
7
|
+
await stop({appName})
|
|
8
|
+
await start({appName, dest, serverName})
|
|
9
9
|
|
|
10
10
|
}
|
package/bin/start.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import path from 'node:path'
|
|
2
2
|
import { pidFileCreate } from "./util.mjs"
|
|
3
3
|
|
|
4
|
-
export default async function(appName, dest, serverName) {
|
|
4
|
+
export default async function({appName, dest, serverName}) {
|
|
5
5
|
// if (! fs.existsSync(CLI_DEST_MAIN)) {
|
|
6
6
|
// console.error(`[${appName}][prod][start] Cannot start server (prod): CLI bundle does not exist ${CLI_DEST_MAIN}`)
|
|
7
7
|
// return
|
package/bin/stop.mjs
CHANGED