|
|
|
@ -15,20 +15,33 @@ You can install this as root by doing the following:
@@ -15,20 +15,33 @@ You can install this as root by doing the following:
|
|
|
|
|
- FreeBSD: pkg install py27-Flask |
|
|
|
|
- pip: pip install Flask |
|
|
|
|
|
|
|
|
|
Watch out! Raspbian has an old version of flask! (0.10) A raspberry is perfect |
|
|
|
|
for running this game, but install pip and use pip to install Flask. |
|
|
|
|
|
|
|
|
|
apt-get install python-pip |
|
|
|
|
pip install Flask |
|
|
|
|
|
|
|
|
|
### Getting the software |
|
|
|
|
Just clone the software from github: |
|
|
|
|
|
|
|
|
|
git clone https://github.com/sciuro/nfgame |
|
|
|
|
git clone https://github.com/sciuro/nfgame.git |
|
|
|
|
|
|
|
|
|
### Updating the software |
|
|
|
|
You can always update the software by running: |
|
|
|
|
|
|
|
|
|
git pull |
|
|
|
|
|
|
|
|
|
### Configure the software |
|
|
|
|
Copy the file nfgame.cfg-example to nfgame.cfg and edit to your preferences. |
|
|
|
|
|
|
|
|
|
cp nfgame.cfg-example nfgame.cfg |
|
|
|
|
|
|
|
|
|
## Running the game |
|
|
|
|
./run.sh |
|
|
|
|
./run.sh |
|
|
|
|
|
|
|
|
|
The site is running on http://<ip>:5000 |
|
|
|
|
The site is running on http://1.2.3.4:5000 |
|
|
|
|
|
|
|
|
|
## Debug mode |
|
|
|
|
You can enable the debug mode by running: |
|
|
|
|
|
|
|
|
|
./run.sh debug |
|
|
|
|
./run.sh debug |
|
|
|
|