2 releases
0.1.1 | Nov 14, 2024 |
---|---|
0.1.0 | Nov 14, 2024 |
#285 in HTTP server
9KB
103 lines
ServerLauncher
About | Features | Technologies | Requirements | Starting | License | Author
π― About
A server launcher for starting and managing servers.
β¨ Features
- Start and manage the server with a single command
- Support multiple servers
- Custom startup commands
- Custom stop commands
- Easy to use
- Use Rhai (A script as similar as Javascript with Lua) script to control the server
- More features to come...
π Technologies
The following tools were used in this project:
β Requirements
Before starting π, you need to have Git and Node installed.
π Install
- Install the binary executable cli.
cargo install ServerLauncher
- create the config file
mkdir lua
touch lua/main.rhai
- And put it in the config file
lua/main.rhai
fn start() {
run_script("/data/BDZC/LogServer/", "start.sh", "");
}
fn stop() {
run_script("/data/BDZC/LogServer/", "stop.sh", "");
}
start
method: start the server
stop
method: stop the server
run_script
method: run the scriptοΌit has three parameters, the first is the path of the script, the second is the script name, the third is the script parameters.
π Starting
# Clone this project
$ git clone https://github.com/xsxz01/ServerLauncher
# Access
$ cd ServerLauncher
# Build Binary Executable
$ cargo build
π License
This project is under license from MIT. For more details, see the LICENSE file.
Made with β€οΈ by Pang
Dependencies
~6.5MB
~114K SLoC