Skip to content
This repository has been archived by the owner on Jun 6, 2023. It is now read-only.

Paperspace Startup Script Not Working #74

Open
junndobit opened this issue Mar 12, 2023 · 0 comments
Open

Paperspace Startup Script Not Working #74

junndobit opened this issue Mar 12, 2023 · 0 comments

Comments

@junndobit
Copy link

`var paperspace_node = require("paperspace-node");

var paperspace = paperspace_node({
apiKey: API_KEY, // <- paste your api key here
});

paperspace.scripts.create
(
{
scriptName: "Server Startup Script",
scriptFile: "/home/paperspace/game-server/linux-build/startup.sh",
scriptDescription: "Runs startup.sh",
machineId: MACHINE_ID
},
function (err, res) {
// handle error or result
console.log(res);
console.log(err);
}
);`

This is my node script that makes a paperspace script when launched. The script is confirmed to be created because when I do "paperspace scripts list", it exists. My problem is when I restart the machine. The startup script that has been created won't launch. I don't really know why it won't work. I followed the documents step by step.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant