Files
adventureland/scripts/list_commands.js
T
2026-03-02 02:03:53 +03:00

12 lines
724 B
JavaScript

var path=require("path"),f=require(path.resolve(__dirname, "functions.js"));
require(process.env.HOME+"/thegame/scripts/data.js");
servers.forEach(function(server){
var machine=machines[server.machine];
var command="["+server.machine+"] ssh -i "+machine.key+" "+machine.user+"@"+machine.ip;
console.log(command);
command="["+server.machine+" logs] scp -i "+machine.key+" "+machine.user+"@"+machine.ip+":s"+server.port+".out .";
console.log(command);
command="["+server.machine+" run] ssh -i "+machine.key+" "+machine.user+"@"+machine.ip+" \"nohup node adventureland/server.js "+server.region+" "+server.name+" "+server.port+" > s"+server.port+".out 2> s"+server.port+".err < /dev/null &\"";
console.log(command);
});