User Tools

Site Tools


dev:tutorials:localserver

Local server setup

To easily test your scripts, starting a local server is a necessity.

Installation

GNU/Linux

Same setup, see server setup.

Windows

  • when the VM is up, type docker-machine ip to get the VM server ip
  • create a directory somewhere for the server
  • create a bash file in this directory
run_server.sh
#!/bin/bash
mkdir -p data
docker rm -f shinsekai
docker run --net=host -it --name shinsekai -v $(pwd)/data:/shinsekai/data archzenvald/shinsekai-server
  • in the docker console, go to your server directory using cd and launch the bash file
./run_server.sh

At this point you should have a server running, Ctrl-C x2 to close it.

Configuration

  • in the server.cfg, set an empty master.url to prevent the server to be added to the server list
  • in your client.cfg, configure the autoconnect with 127.0.0.1 for GNU/Linux or the result of docker-machine ip for Windows
dev/tutorials/localserver.txt · Last modified: 2017/04/03 14:56 by archzenvald