How to let server execute automatically when you start a server, with node and pack it with electron?

how to make server execute automatically when you start a server, with node and pack it with electron

Mar.25,2021

on top of main.js

let exec = require('child_process').exec;    

createWindow method (maybe some other method, which monitors the ready event of app anyway),

exec('servernode' , err => {
    if (err) {
        //...
    }
})

Let me ask how my node server can be typed into the installation package together

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e45266-43a88.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e45266-43a88.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?