3 months ago
hey, i was told that i am able to spawn subprocesses like unix apps (because its a linux os) and have those run in the background, being able to communicate through things like localhost.
here is my setup:
simple commonjs node server
seperate unix executable for a feature in my node server
attached is some pictures of code and file tree
now, when i start my service and try to run the executable, it just gives me this error: [server] Failed to spawn: spawn ./ocrserver EACCES
EACCES means a access/permission issue which shouldnt be happening.
5 Replies
woah, this is new. does this expose my whole service to the public? not sure if i like that lol
3 months ago
No, it's just a URL, and only an admin or you will be able to actually open it.
Ohh makes sense, I was logged in lol so of course I could see it myself
3 months ago
Hi,
By any chance did you checked your file permissions ? You can ssh into your container by using Railway CLI and check the file permissions with ls -lah /path/to/file
You might have to add the execute permission to your file. I think you can just add the permission to your file then commit to git and it should work !