[Gandi] [Simple Hosting] Tirer/pousser (pull/push) des modifications

[Gandi] [Simple Hosting] Tirer/pousser (pull/push) des modifications.
1/ Répertoire de travail :

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

2/ Création du répertoire de l’application :

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

3/ Initialiser le dépôt git local :

[~/NODEJS-example-clone/myapp] ➔ git init .
Initialized empty Git repository in /home/sam/NODEJS-example-clone/myapp/.git/

4/ Ajout et/ ou modification de fichier.
5/ Etat du dépôt :

[~/NODEJS-example-clone/myapp] ➔ git status
On branch master
Initial commit
Untracked files:
  (use "git add ..." to include in what will be committed)
	CHANGELOG
nothing added to commit but untracked files present (use "git add" to track)

6/ Ajout de la branche distance du dépôt distant :

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

7/ Récupérer les fichiers :

[~/NODEJS-example-clone/myapp] ➔ git pull --rebase gandi master
remote: Counting objects: 10, done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 10 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (10/10), done.
From git+ssh://git.dc2.gpaas.net/default
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> gandi/master

8/ Etat du dépôt :

[~/NODEJS-example-clone/myapp] ➔ git status
On branch master
Untracked files:
  (use "git add ..." to include in what will be committed)
	CHANGELOG
nothing added to commit but untracked files present (use "git add" to track)

9/ Ajout du ou des fichiers :

[~/NODEJS-example-clone/myapp] ➔ git add -A
[~/NODEJS-example-clone/myapp] ➔ git status
On branch master
Changes to be committed:
  (use "git reset HEAD ..." to unstage)
	new file:   CHANGELOG

10/ Committer les changements :

[~/NODEJS-example-clone/myapp] ➔ git commit -m "Add changelog"
[master 6916245] Add changelog
 1 file changed, 2 insertions(+)
 create mode 100644 CHANGELOG

11/ Pousser les changements :

[~/NODEJS-example-clone/myapp] ➔  git push gandi master
Counting objects: 4, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 297 bytes | 0 bytes/s, done.
Total 3 (delta 1), reused 0 (delta 0)
To git+ssh://935763@git.dc2.gpaas.net/default.git
   81444f8..6916245  master -> master

12/ Déployer l’application :

[~/NODEJS-example-clone/myapp] ➔  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
mkdir: cannot create directory '/dev/null': Not a directory
mkdir: cannot create directory '/dev/null': Not a directory
Found '/tmp/build.fVk3iGGdnU/.nvmrc' with version <4.4>
v4.4.7 is already installed.
Now using node v4.4.7 (npm v2.15.8)
express@4.14.0 node_modules/express
├── array-flatten@1.1.1
├── escape-html@1.0.3
...
node_modules/express/node_modules/vary/
node_modules/express/node_modules/vary/package.json
sent 107,508 bytes  received 1,186 bytes  217,388.00 bytes/sec
total size is 1,184,631  speedup is 10.90
sending incremental file list
.nvmrc
CHANGELOG
Procfile
README.md
app.json
index.js
package.json
public/node.svg
sent 3,573 bytes  received 177 bytes  7,500.00 bytes/sec
total size is 2,971  speedup is 0.79
-----> Build complete
-----> Cleaning temporary files
[~/NODEJS-example-clone/myapp] ➔

14/ Historique des changements :

[~/NODEJS-example-clone/myapp] ➔ git log
commit 8ac470d98c4be6821586a3baf29a952de763579a
Author: samuel.gondouin 
Date:   Thu Sep 8 11:53:26 2016 +0200
    Update index
commit 6916245741a915483e07d73c8bcd258fb15f3f43
Author: samuel.gondouin 
Date:   Thu Sep 8 11:49:58 2016 +0200
    Add changelog
commit 81444f8c3203cdf5aa949fbd1f51a58cc5735c1f
Author: samuel.gondouin 
Date:   Thu Sep 8 09:40:00 2016 +0200
    Version 0.0.1

13/ Test
http://5e6a5d6b83.testurl.ws/

Comments are closed, but trackbacks and pingbacks are open.