Automating Rojo Serves

I’m using VSC and Rojo with a method that allows me to use multiple project.json files to split the code based on what place it is.

The issue I’m having is I have to type rojo serve NAME.project.json in the VSC terminal for each place manually when I open VSC, and on top of that I have to use the Rojo plugin and type in the port every time.

Is there a way I can automate one or both of these methods?

1 Like

So there is something called a makefile that lets you shortcut commands

serve:
	rojo serve NAME.project.json


sayHello:
	echo "Hello"

and then to execute you would simply use command make serve and make sayHello

1 Like

Do you have the link to make? I’ve tried googling but I can’t find it

1 Like

This is makefile for windows

Im pretty sure it comes with the standard developer tools on Mac

2 Likes

I got make working, but it only seems to execute one of the Rojo serves when I type “make” into the terminal.

image

– output
image

am I doing something wrong?

1 Like

The rojo serve program is yielding meaning that it will prevent the flow of execution until it is done. You can put tasks into the background by putting an ampersand on the tail of the command

rojo server game.project.json &
rojo server game.lobby.json &

The output will be very mangled

1 Like

Still only runs the first one

Put a \ at the end of your first action line.

rojo server game.project.json & \

1 Like

Nothing changes when doing this