Files
adventurelandX/scripts/list_commands.js
T
2023-10-15 13:06:58 +03:00

12 lines
708 B
JavaScript

var f=require(process.env.HOME+"/thegeobird/scripts/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 server/server.js "+server.region+" "+server.name+" "+server.port+" > s"+server.port+".out 2> s"+server.port+".err < /dev/null &\"";
console.log(command);
});