Skip to content

Commit

Permalink
actualized README
Browse files Browse the repository at this point in the history
  • Loading branch information
ekalinin committed Apr 19, 2011
1 parent 1627aab commit adfd3ec
Showing 1 changed file with 12 additions and 51 deletions.
63 changes: 12 additions & 51 deletions README.rst
Expand Up @@ -37,32 +37,23 @@ Basic

Install new environment::

$ ./nodeenv.py env
* Creating: ~/nodeenv/env/src ... done.
* Retrieve: http://nodejs.org/dist/node-v0.4.5.tar.gz ...
######################################################################## 100,0%
* Retrieve: http://nodejs.org/dist/node-v0.4.5.tar.gz ... done.
* Compile: ~/nodeenv/env/src/node-v0.4.5 ...
** Running command ./configure --prefix=~/nodeenv/env
** Running command make
** Running command "make install"
* Compile: ~/nodeenv/env/src/node-v0.4.5 ... done
* Writing env/bin/activate ... done.
* Install node.js package manager ... done.
$ nodeenv env

Activate new environment::

$ . env/bin/activate

(env-0.4.5) $ node -v
v0.4.5
Chek versions of main packages::

(env-0.4.5) $ npm -v
(env) $ node -v
v0.4.6

(env) $ npm -v
0.3.18

Deactivate environment::

(env-0.4.5) $ deactivate
(env) $ deactivate

Advanced
^^^^^^^^
Expand All @@ -79,53 +70,23 @@ Get available node.js versions::
0.1.98 0.1.99 0.1.100 0.1.101 0.1.102 0.1.103 0.1.104
0.2.1 0.2.2 0.2.3 0.2.4 0.2.5 0.2.6 0.3.0
0.3.2 0.3.3 0.3.4 0.3.5 0.3.6 0.3.7 0.3.8
0.4.1 0.4.2 0.4.3 0.4.4 0.4.5
0.4.1 0.4.2 0.4.3 0.4.4 0.4.5 0.4.6

Install node.js "0.4.3" without ssl support with 4 parallel commands
for compilation::

$ ./nodeenv.py --without-ssl --node "0.4.3" --jobs 4 env-4.3
* Creating: ~/nodeenv/env-4.3/src ... done.
* Retrieve: http://nodejs.org/dist/node-v0.4.3.tar.gz ...
######################################################################## 100,0%
* Retrieve: http://nodejs.org/dist/node-v0.4.3.tar.gz ... done.
* Compile: ~/nodeenv/env-4.3/src/node-v0.4.3 ...
** Running command ./configure --prefix=~/nodeenv/env
** Running command make
** Running command "make install"
* Compile: ~/nodeenv/env-4.3/src/node-v0.4.3 ... done.
* Writing env-4.3/bin/activate ... done.
* Install node.js package manager ... done.

Saving into the file versions of all installed packages::

$ . env-4.3/bin/activate
(env-0.4.3)$ npm install express
(env-0.4.3)$ npm install jade
(env-0.4.3)$ freeze ../prod-requirements.txt
(env-4.3)$ npm install express
(env-4.3)$ npm install jade
(env-4.3)$ freeze ../prod-requirements.txt

Create environment copy from requirements file::
Create environment copy from requirement file::

$ ./nodeenv.py -r ../prod-requirements.txt --jobs 4 env-copy
* Creating: ~/nodeenv/env-copy/src ... done.
* Retrieve: http://nodejs.org/dist/node-v0.4.6.tar.gz ...
######################################################################## 100,0%
* Retrieve: http://nodejs.org/dist/node-v0.4.6.tar.gz ... done.
* Compile: ~/nodeenv/env-copy/src/node-v0.4.6 ...
** Running command ./configure --prefix=~/nodeenv/env-copy
** Running command make
** Running command "make install"
* Compile: ~/nodeenv/env-copy/src/node-v0.4.6 ... done
* Writing env-copy/bin/activate ... done.
* Install node.js package manager ... done.
* Install node.js packages ...
** Running command ". env-copy/bin/activ...tivate connect@1.3.0"
** Running command ". env-copy/bin/activ...tivate express@2.2.2"
** Running command ". env-copy/bin/activ...activate jade@0.10.4"
** Running command ". env-copy/bin/activ... activate mime@1.2.1"
** Running command ". env-copy/bin/activ... activate npm@0.3.17"
** Running command ". env-copy/bin/activ...pm activate qs@0.0.7"
* Install node.js packages ... done.

Requirements files are plain text files that contain a list of packages
to be installed. These text files allow you to create repeatable installations.
Expand Down

0 comments on commit adfd3ec

Please sign in to comment.