[Gandi] [Simple Hosting] Installation d’une application Nodejs de base avec Expressjs

[Gandi] [Simple Hosting] Installation d’une application Nodejs de base avec Expressjs.
1/ Répertoire de travail :

[~] ➔ mkdir NODEJS-example
[~] ➔ cd NODEJS-example/

2/ Téléchargement de l’exemple :

[~/NODEJS-example] ➔ git clone https://github.com/Nekrofage/nodejs-example.git
Cloning into 'nodejs-example'...
remote: Counting objects: 10, done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 10 (delta 0), reused 10 (delta 0), pack-reused 0
Unpacking objects: 100% (10/10), done.
Checking connectivity... done.
[~/NODEJS-example] ➔ cd nodejs-example/
[~/NODEJS-example/nodejs-example] ➔

3/ Ajout de la branche distante de l’instance :

[~/NODEJS-example/nodejs-example] ➔ git remote add gandi git+ssh://935763@git.dc2.gpaas.net/default.git

4/ Pousser les modifications vers le gitweb de l’instance :

[~/NODEJS-example/nodejs-example] ➔ git push gandi master
Counting objects: 10, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (7/7), done.
Writing objects: 100% (10/10), 2.17 KiB | 0 bytes/s, done.
Total 10 (delta 0), reused 0 (delta 0)
To git+ssh://935763@git.dc2.gpaas.net/default.git
 * [new branch]      master -> master

5/ Déploiement de l’application Nodejs vers l’instance :

[~/NODEJS-example/nodejs-example] ➔ ssh 935763@git.dc2.gpaas.net 'deploy default.git'
initializing builder
.................builder ready
Vm password:
Grabbing terminal
Ok
-----> Starting new deployment (default - master)
-----> Fetching application code
-----> Building new application
N/A: version "N/A" is not yet installed.
You need to run "nvm install N/A" to install it before using it.
mkdir: cannot create directory '/dev/null': Not a directory
mkdir: cannot create directory '/dev/null': Not a directory
Found '/tmp/build.6XSSzzTFEV/.nvmrc' with version <4.4>
Downloading https://nodejs.org/dist/v4.4.7/node-v4.4.7-linux-x64.tar.xz...
######################################################################## 100.0%
Now using node v4.4.7 (npm v2.15.8)
Creating default alias: default -> 4.4 (-> v4.4.7 *)
express@4.14.0 node_modules/express
├── escape-html@1.0.3
├── array-flatten@1.1.1
├── cookie-signature@1.0.6
...
├── type-is@1.6.13 (media-typer@0.3.0, mime-types@2.1.11)
└── accepts@1.3.3 (negotiator@0.6.1, mime-types@2.1.11)
-----> Copying new application
sending incremental file list
node_modules/
node_modules/express/
node_modules/express/History.
...
node_modules/express/node_modules/vary/HISTORY.md
node_modules/express/node_modules/vary/LICENSE
node_modules/express/node_modules/vary/README.md
node_modules/express/node_modules/vary/index.js
node_modules/express/node_modules/vary/package.json
sent 1,203,159 bytes  received 5,716 bytes  483,550.00 bytes/sec
total size is 1,182,391  speedup is 0.98
sending incremental file list
.nvmrc
Procfile
README.md
app.json
index.js
package.json
public/
public/node.svg
sent 3,480 bytes  received 161 bytes  7,282.00 bytes/sec
total size is 2,939  speedup is 0.81
-----> Build complete
-----> Cleaning temporary files
[~/NODEJS-example/nodejs-example] ➔

7/ Test :
http://5e6a5d6b83.testurl.ws/
8/ Lien :
https://github.com/Nekrofage/nodejs-example

Comments are closed, but trackbacks and pingbacks are open.