Billions must commit
This commit is contained in:
parent
83bfdcf281
commit
5c89e6743a
|
|
@ -15,7 +15,7 @@ app.use("/render/game", require("./routes/render/game.js"))
|
||||||
app.use("*", require("./routes/index.js"))
|
app.use("*", require("./routes/index.js"))
|
||||||
|
|
||||||
app.listen(process.env.PORT || 64989, () => {
|
app.listen(process.env.PORT || 64989, () => {
|
||||||
logger.info(`Listening on http://127.0.0.1:${process.env.PORT || 64989}/`)
|
logger.boot(`Listening on http://127.0.0.1:${process.env.PORT || 64989}/`)
|
||||||
})
|
})
|
||||||
|
|
||||||
process.on("uncaughtException", (err) => {
|
process.on("uncaughtException", (err) => {
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,11 @@ class RCCService extends EventEmitter {
|
||||||
Start(options = { cwd: this.path }) {
|
Start(options = { cwd: this.path }) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
try {
|
try {
|
||||||
this.proc = child_process.spawn("RCCService.exe", ["-Console", "-PlaceId:-1", `-Port`, port], options)
|
if(process.platform == "win32") {
|
||||||
|
this.proc = child_process.spawn("RCCService.exe", ["-Console", "-PlaceId:-1", `-Port`, port], options)
|
||||||
|
} else {
|
||||||
|
this.proc = child_process.spawn("wine", ["RCCService.exe", "-Console", "-PlaceId:-1", `-Port`, port], options)
|
||||||
|
}
|
||||||
this.proc.once("spawn", () => {
|
this.proc.once("spawn", () => {
|
||||||
logger.info(`Spawning RCCService instance on port ${port}`);
|
logger.info(`Spawning RCCService instance on port ${port}`);
|
||||||
resolve(this.proc)
|
resolve(this.proc)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue