Update README.md

This commit is contained in:
Daniel authored and GitHub committed 2017-02-27 21:29:00 +01:00
1 parent b37e158774
commit 0264037731
1 file changed
+11 -5
+11 -5
View File
@@ -78,20 +78,26 @@ NodeJS does not support EOL ubuntu releases. Make sure you are on the most recen
Master and all slaves: Master and all slaves:
sudo curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash - && sudo apt install -y git nodejs && git clone https://github.com/Danielv123/factorioClusterio.git && cd factorioClusterio && npm install && curl -o factorio.tar.gz -L https://www.factorio.com/get-download/latest/headless/linux64 && tar -xvzf factorio.tar.gz sudo curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash - && sudo apt install -y git nodejs && git clone https://github.com/Danielv123/factorioClusterio.git && cd factorioClusterio && npm install && sudo npm install pm2 -g && curl -o factorio.tar.gz -L https://www.factorio.com/get-download/latest/headless/linux64 && tar -xvzf factorio.tar.gz
downloads and installs nodejs, git and clusterio. To specify a version, change "latest" in the link to a version number like 0.14.21. downloads and installs nodejs, pm2, git and clusterio. To specify a version, change "latest" in the link to a version number like 0.14.21.
**Master** **Master**
node master.js pm2 start master.js --name master
**Server Host** **Server Host**
To download the mod for all its non vanilla features and items, (optional) To download the mod for all its non vanilla features and items, (optional)
node client.js download node client.js download
To create a new instance (its own save, set of mods and config files)
node client.js start [instancename] node client.js start [instancename]
To launch an instance with pm2
pm2 start --name slave client.js -- start [instancename]
use `nano config.json` to change settings. use `nano config.json` to change settings.