Permalink
Browse files

[master] Added info about the versions installer

  • Loading branch information...
alejandro committed Feb 24, 2012
1 parent 3d223c9 commit 1de6d0c90319932b7403af9791f1087b67c2b918
Showing with 35 additions and 9 deletions.
  1. +1 −1 bin/proxy_start.sh
  2. +30 −7 install.md
  3. +2 −0 lib/app.js
  4. +2 −1 proxy/proxy.js
View
@@ -1,4 +1,4 @@
-#!/bin/bash
+ #!/bin/bash
cd `dirname $0`
View
@@ -1,14 +1,14 @@
-## How to install nodester in you personal cloud.
+# How to install nodester in you personal cloud.
_Nodester - A node.js hosting platform_
-**If you want you can use the `[nodester-installer](http://github.com/nodester/nodester-installer)`, still work in progress, but functional.**
+**If you want you can use the [nodester-installer](http://github.com/nodester/nodester-installer), still work in progress, but functional.**
The only thing that you need to setup your personal instance is `ssh` access- Like this:
> ssh -t root@yourserver.com
-### Dependencies:
+## Dependencies:
- bouncy
@@ -27,7 +27,7 @@ The only thing that you need to setup your personal instance is `ssh` access- Li
- coloured
- coffee-script
-### Installation:
+## Installation:
Nodester was/is build on node 0.4.x so we recommend to have as default version the 0.4.9 or any 0.4.x version installed in your server. First of all you'll need some packages to make nodester work, the only one that you need to manually install are node.js, npm, curl and forever as follows:
@@ -178,6 +178,28 @@ The example config.js looks like this:
Also copy `scripts/example_gitrepoclone.sh` to `scripts/gitrepoclone.sh` and update it with the key you specified in `config.js`.
+### Multiple versions of node:
+
+User: `root`
+
+We've created a script to install all the versions of node with a single line:
+
+ > cd /var/nodester/nodester/
+ > bin/install_versions.js --run
+
+**warning**: As you may know compiling node.js can take long, so imagine installing ~20 versions of node.js from once, that would be awful and you'll better get some coffee and wait. So, you can add something like this:
+
+ > bin/install_versions.js -v 0.4.9
+
+Which can be done also with `n` directly: `n 0.4.9` for example.
+
+Programmatically you can also require the `install_versions.js` module, and then install the version you want:
+
+ // installer.js
+ var installer = require('./bin/install_versions.js');
+ installer('0.5.9')
+
+
### Setting up the database
user: `nodester`
@@ -204,7 +226,7 @@ Also you migth want to chown the proxy_table to nodester:
> sudo chown $USER -R nodester/var/proxy_table.json
-### Ready, set, GO!
+## Ready, set, GO!
Start up the proxy and main/api app (do this as nodester):
@@ -239,10 +261,11 @@ Make changes to your repo and:
GOTO-> appname.example.co
- ..
-Rejoice!
+### Rejoice!
Sidenotes:
+
**More info about the REST API: http://nodester.com/api.html#rest**
+
Don't you like the REST API way? Try the [`nodester-cli`](http://github.com/nodester/nodester-cli).
View
@@ -300,6 +300,8 @@ module.exports = {
}
});
},
+
+
app_start: function (req, res, next) {
var repo_id = req.query.repo_id;
var restart_key = req.query.restart_key;
View
@@ -22,7 +22,8 @@ fs.watchFile(config.opt.proxy_table_file, function (oldts, newts) {
console.log('Proxy map failed to update! (read)');
throw err;
} else {
- proxymap = JSON.parse(data||{});
+ proxymap = JSON.parse(data);
+
console.log('Proxy map updated');
}
});

0 comments on commit 1de6d0c

Please sign in to comment.