Bare Metal Deployment
5/14/25Less than 1 minuteDeploymentnohup
Web and gRPC services created by the sponge framework support bare metal deployment, offering the following two deployment methods:
Method 1: Local nohup Background Running
Operation Steps:
- Switch to the service code directory
- Execute the following commands:
# Start/Update Service (Background Running)
make run-nohup
# Stop Service
make run-nohup CMD=stop
Method 2: Deploy to Remote Linux Server
Deployment Steps:
- Switch to the service code directory
- Execute the deployment command:
# Deploy/Update Service to Remote Server
make deploy-binary USER=root PWD=123456 IP=192.168.1.10
Windows Environment Requirements
Ensure that the system supports expect, scp, and ssh commands in the Windows environment.
Service Management:
After deployment is complete, operate on the target server:
- Enter the service directory:
~/app/service-name-binary
- Execute management commands:
# Start/Restart Service (Configuration can be modified first)
./run.sh
# Stop Service
./run.sh stop