mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-17 23:33:12 +09:00
Rename client.js to slave.js
Rename the client.js script to slave.js, and changed places where it's refered to as client into slave.
This commit is contained in:
1 parent
ae86781b0d
commit
028f00e58a
7 files changed
+37
-37
No files matched your search
@@ -128,7 +128,7 @@ Clusterio has *very* limited support for using docker.
|
||||
|
||||
sudo docker run --name master -e MODE=master -p 1234:8080 -d -it --restart=unless-stopped danielvestol/clusterio
|
||||
|
||||
sudo docker run --name slave -e MODE=client -e INSTANCE=world1 -v /srv/clusterio/instances:/factorioClusterio/instances -p 1235:34167 -it --restart=unless-stopped danielvestol/clusterio
|
||||
sudo docker run --name slave -e MODE=slave -e INSTANCE=world1 -v /srv/clusterio/instances:/factorioClusterio/instances -p 1235:34167 -it --restart=unless-stopped danielvestol/clusterio
|
||||
|
||||
The -v flag is used to specify the instance directory. Your instances (save files etc) will be stored there.
|
||||
-->
|
||||
@@ -142,7 +142,7 @@ Clusterio is built up of multiple parts. Here is a quick guide:
|
||||
|
||||
Master = master.js
|
||||
|
||||
Server host (Slave) = client.js + factorio server
|
||||
Server host (Slave) = slave.js + factorio server
|
||||
|
||||
Game Client = The people connecting to the server
|
||||
|
||||
@@ -213,20 +213,20 @@ up.
|
||||
|
||||
To set up the configuration for a new local slave run the following.
|
||||
|
||||
node client config set slave.name "Local"
|
||||
node client config set slave.master_token "<token>"
|
||||
node slave config set slave.name "Local"
|
||||
node slave config set slave.master_token "<token>"
|
||||
|
||||
This will write a new `config-slave.json` file in the current directory
|
||||
(you can change the location with the `--config` option) with the name
|
||||
and token provided. If you are connecting to a remote master server you
|
||||
will also need to set the `slave.master_url` option to that url.
|
||||
|
||||
You can list the config of a slave with the `node client config list`
|
||||
command. Use `node client config --help` for more information.
|
||||
You can list the config of a slave with the `node slave config list`
|
||||
command. Use `node slave config --help` for more information.
|
||||
|
||||
Once the config is set up run the slave with
|
||||
|
||||
node client start
|
||||
node slave run
|
||||
|
||||
|
||||
### Instances
|
||||
|
||||
Reference in new issue
Block a user