Update manual_installation.md

This commit is contained in:
evook
2015-04-22 18:19:54 +02:00
parent df89960182
commit adbc9353f5

View File

@@ -19,20 +19,20 @@ We'll use `n` because it's powerful and flexible. First, you need `curl`. Then,
```bash
curl -o /usr/local/bin/n https://raw.githubusercontent.com/visionmedia/n/master/bin/n
chmod +x /usr/local/bin/n
n stable
sudo chmod +x /usr/local/bin/n
sudo n stable
```
We'll consider at this point that you've got a working node on your box. E.g:
```
$ node -v
v0.10.36
v0.12.2
```
### Packages
```
apt-get install build-essential redis-server libpng-dev git python-minimal
sudo apt-get install build-essential redis-server libpng-dev git python-minimal
```
## Fetching the Code
@@ -51,7 +51,7 @@ git clone http://github.com/vatesfr/xo-web
Once you have it, you can use `npm` to install the other dependencies: go into XO-Server directory and launch the following command:
```
npm install
npm install && npm run build
```
Then, you have to create a config file for XO-Server:
@@ -60,12 +60,11 @@ Then, you have to create a config file for XO-Server:
cp sample.config.yaml .xo-server.yaml
```
Edit it to have the right path to deliver XO-Web, because XO-Server embeds an HTTP server (we assume that XO-Server and XO-Web are on the same directory). It's near the end of the file:
Edit and uncomment it to have the right path to deliver XO-Web, because XO-Server embeds an HTTP server (we assume that XO-Server and XO-Web are on the same directory). It's near the end of the file:
```yaml
mounts:
'/':
- '../xo-web/dist/'
'/': '../xo-web/dist/'
```
WARNING: YAML is very strict with indentation: use spaces for it, not tabs.
@@ -75,7 +74,7 @@ You can try to start XO-Server to see if it works. You should have something lik
```
$ npm start
WebServer listening on 0.0.0.0:80
WebServer listening on localhost:80
[INFO] Default user: "admin@admin.net" with password "admin"
```