Service created for collection statistics San Andreas Multiplayer (sa-mp.com) servers. List of servers receive from the official master-server.
- Go to the desired folder:
cd /your_path/ - Set GOPAPTH:
export GOPATH=/your_path/statsamp - Download source code:
git clone https://github.com/quickdevel/statsamp.git - Download dependencies:
go get -d ./... - Create folder for binaries:
mkdir $GOPATH/bin && cd $GOPATH/bin - Build server and updater packages:
go build statsamp/server statsamp/updater - Return to desired folder:
cd /your_path - Import database structure from mysql_structure.sql.
- Configure database access in statsamp.cfg.
- Configure crontab for updating stats (use
crontab -e). Sample (update every hour in 55 minutes):55 * * * * cd /your_path/statsamp && bin/updater - Start web-service:
bin/server
You can set required version in statsamp.cfg.