pi 0.1.27 → 0.1.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README CHANGED
@@ -59,83 +59,91 @@ _Copyright 2010-2012, Samsung.
59
59
  Currently available pi commands are:
60
60
 
61
61
  User
62
- login [url] [--user,--password] Login
63
- logout Logs current user out of the system
64
- info List system information
65
- user Display user information
66
- targets List available targets infomation
67
- password [oldpassword] [--password PASS] Change the password for the current user
68
- github [name] [--email,--password] Bind to the github account
69
- runtimes Display the supported runtimes of the system
70
- frameworks Display the supported frameworks of the system
71
- version Display version information
72
- help [command] Get general help or help on a specific command
73
- help options Get help on available options
62
+ login [url] [--user,--password] Login
63
+ logout Logs current user out of the system
64
+ info List system information
65
+ user Display user information
66
+ targets List available targets infomation
67
+ password [oldpassword] [--password PASS] Change the password for the current user
68
+ github [name] [--email,--password] Bind to the github account
69
+ runtimes Display the supported runtimes of the system
70
+ frameworks Display the supported frameworks of the system
71
+ version Display version information
72
+ help [command] Get general help or help on a specific command
73
+ help options Get help on available options
74
74
 
75
75
  Project
76
- projects List created projects
77
- create-project [project] Create a new project
78
- delete-project [projectid] Delete the project
79
- project-events [projectid] List the event info for the project
80
- project-tags [projectid] List the tags for the project
81
- project-commits [projectid] List the commit log for the project
82
- upload [projectid][--path,--ver,--desc] Upload the war package for java project
76
+ projects List created projects
77
+ create-project [project] Create a new project
78
+ delete-project [projectid] Delete the project
79
+ project-events [projectid] List the event info for the project
80
+ project-tags [projectid] List the tags for the project
81
+ project-commits [projectid] List the commit log for the project
82
+ upload [projectid] [--path,--ver,--desc] Upload the war package for java project
83
83
 
84
84
  Application
85
- apps [--projectid,--target] List deployed applications
86
- create-app [appname] Create a new application
87
- delete-app [appid] Delete the application
88
- delete-app <appname> <--target TARGET> Delete the application
89
- start-app [appid] Start the application
90
- start-app <appname> <--target TARGET> Start the application
91
- stop-app [appid] Stop the application
92
- stop-app <appname> <--target TARGET> Stop the application
93
- restart-app [appid] Restart the application
94
- restart-app <appname> <--target TARGET> Restart the application
95
- scale-app [appid] [--instance N] Scale the application instances up or down
96
- scale-app <appname> <--target TARGET> [--instance N] Scale the application instances up or down
97
- update-app [appid] [--ver VERSION] Update the application
98
- update-app <appname> <--target TARGET>[--ver VERSION] Update the application
99
- status [appid] Display resource usage for the application
100
- status <appname> <--target TARGET> Display resource usage for the application
101
- app-env [appid] Display the environments for the application
102
- app-env <appname> <--target TARGET> Display the environments for the application
103
- create-env [appid][--name,--value] Create the environment for the application
104
- create-env <appname><--target TARGET>[--name,--value] Create the environment for the application
105
- delete-env [appid] [--name NAME] Delete the environment for the application
106
- delete-env <appname> <--target TARGET> [--name NAME] Delete the environment for the application
107
- app-log [appid] List the logs for the application
108
- app-log <appname> <--target TARGET> List the logs for the application
109
-
85
+ apps [--projectid,--target] List deployed applications
86
+ create-app [appname] Create a new application
87
+ delete-app [appid] Delete the application
88
+ delete-app <appname> <--target TARGET> Delete the application
89
+ start-app [appid] Start the application
90
+ start-app <appname> <--target TARGET> Start the application
91
+ stop-app [appid] Stop the application
92
+ stop-app <appname> <--target TARGET> Stop the application
93
+ stop-app --graceful Stop the application in a graceful mode
94
+ restart-app [appid] Restart the application
95
+ restart-app <appname> <--target TARGET> Restart the application
96
+ restart-app --graceful --lazy Restart the application in a graceful and lazy mode
97
+ scale-app [appid] [--instance N] Scale the application instances up or down
98
+ scale-app <appname> <--target TARGET> [--instance N] Scale the application instances up or down
99
+ scale-app --graceful Scale the application instances in a graceful mode
100
+ update-app [appid] [--ver VERSION] Update the application
101
+ update-app <appname> <--target TARGET> [--ver VERSION] Update the application
102
+ update-app --graceful --lazy Update the application in a graceful and lazy mode
103
+ status [appid] Display resource usage for the application
104
+ status <appname> <--target TARGET> Display resource usage for the application
105
+ app-env [appid] Display the environments for the application
106
+ app-env <appname> <--target TARGET> Display the environments for the application
107
+ create-env [appid] [--name,--value] Create the environment for the application
108
+ create-env <appname> <--target TARGET> [--name,--value] Create the environment for the application
109
+ delete-env [appid] [--name NAME] Delete the environment for the application
110
+ delete-env <appname> <--target TARGET> [--name NAME] Delete the environment for the application
111
+ app-log [appid] [--instanceid,--file] List the logs for the application
112
+ app-log <appname> <--target TARGET> [--instanceid,--file] List the logs for the application
113
+ app-debug [appid] List the debug info for the application
114
+ app-debug <appname> <--target TARGET> List the debug info for the application
115
+
110
116
  Service
111
- app-service [appid] Display the binded services for the application
112
- app-service <appname> <--target TARGET> Display the binded services for the application
113
- bind-service [appid][--service SERVICE] Bind the services for the application
114
- bind-service <appname> <--target TARGET> [--service] Bind the services for the application
115
- unbind-service [appid][--service SERVICE] Unbind the services for the application
116
- unbind-service <appname> <--target TARGET>[--service] Unbind the services for the application
117
- services List dedicated services
118
- service [serviceid] List the connection info for the service
119
- export-service [serviceid] Export dedicated service url
120
- import-service [url] Import dedicated service
121
- check-service [serviceid] Check availability for the service
122
- delete-service [serviceid] Delete the service
123
- register-service [serviceid] [--target,--type] Register to target
124
- deregister-service [serviceid] [--target TARGET] Deregister to target
117
+ app-service [appid] Display the binded services for the application
118
+ app-service <appname> <--target TARGET> Display the binded services for the application
119
+ bind-service [appid] [--service SERVICE] Bind the services for the application
120
+ bind-service <appname> <--target TARGET> [--service] Bind the services for the application
121
+ bind-service --graceful --lazy Bind the services for the application in a graceful and lazy mode
122
+ unbind-service [appid] [--service SERVICE] Unbind the services for the application
123
+ unbind-service <appname> <--target TARGET> [--service] Unbind the services for the application
124
+ unbind-service --graceful --lazy Unbind the services for the application in a graceful and lazy mode
125
+ services List dedicated services
126
+ service [serviceid] List the connection info for the service
127
+ export-service [serviceid] Export dedicated service url
128
+ import-service [url] Import dedicated service
129
+ check-service [serviceid] Check availability for the service
130
+ delete-service [serviceid] Delete the service
131
+ register-service [serviceid] [--target,--type] Register to target
132
+ deregister-service [serviceid] [--target TARGET] Deregister to target
125
133
 
126
134
  DNS
127
- app-dns [appid] Display the mapped urls for the application
128
- app-dns <appname> <--target TARGET> Display the mapped urls for the application
129
- map-dns [appid] [--dns DNS] Map the urls for the application
130
- map-dns <appname> <--target TARGET> [--dns DNS] Map the urls for the application
131
- unmap-dns [appid] [--dns DNS] Unmap the urls for the application
132
- unmap-dns <appname> <--target TARGET> [--dns DNS] Unmap the urls for the application
133
- dns List the dns
134
- zones List the dns zones
135
- create-dns [dnsname] [--zoneid,--projectid,--desc] Create a new dns
136
- register-dns [dnsid] Register to target
137
- deregister-dns [dnsid] Deregister to target
138
- delete-dns [dnsid] Delete the dns
135
+ app-dns [appid] Display the mapped urls for the application
136
+ app-dns <appname> <--target TARGET> Display the mapped urls for the application
137
+ map-dns [appid] [--dns DNS] Map the urls for the application
138
+ map-dns <appname> <--target TARGET> [--dns DNS] Map the urls for the application
139
+ unmap-dns [appid] [--dns DNS] Unmap the urls for the application
140
+ unmap-dns <appname> <--target TARGET> [--dns DNS] Unmap the urls for the application
141
+ dns List the dns
142
+ zones List the dns zones
143
+ create-dns [dnsname] [--zoneid,--projectid,--desc] Create a new dns
144
+ register-dns [dnsid] [--target,--continent,--country] Register to target
145
+ deregister-dns [dnsid] [--recordid ID] Deregister to target
146
+ delete-dns [dnsid] Delete the dns
139
147
 
140
148
  4. Example
141
149
 
@@ -149,7 +157,7 @@ ubuntu@admin:~$ pi login staging.samsungcloud.org --user wangjing --password clo
149
157
  Successfully logged into [http://staging.samsungcloud.org]
150
158
 
151
159
  ubuntu@admin:~$ pi version
152
- pi 0.1.25
160
+ pi 0.1.27
153
161
 
154
162
  ubuntu@admin:~$ pi user
155
163
 
@@ -211,83 +219,91 @@ Try 'pi help [command]' or 'pi help options' for more information.
211
219
  Currently available pi commands are:
212
220
 
213
221
  User
214
- login [url] [--user,--password] Login
215
- logout Logs current user out of the system
216
- info List system information
217
- user Display user information
218
- targets List available targets infomation
219
- password [oldpassword] [--password PASS] Change the password for the current user
220
- github [name] [--email,--password] Bind to the github account
221
- runtimes Display the supported runtimes of the system
222
- frameworks Display the supported frameworks of the system
223
- version Display version information
224
- help [command] Get general help or help on a specific command
225
- help options Get help on available options
222
+ login [url] [--user,--password] Login
223
+ logout Logs current user out of the system
224
+ info List system information
225
+ user Display user information
226
+ targets List available targets infomation
227
+ password [oldpassword] [--password PASS] Change the password for the current user
228
+ github [name] [--email,--password] Bind to the github account
229
+ runtimes Display the supported runtimes of the system
230
+ frameworks Display the supported frameworks of the system
231
+ version Display version information
232
+ help [command] Get general help or help on a specific command
233
+ help options Get help on available options
226
234
 
227
235
  Project
228
- projects List created projects
229
- create-project [project] Create a new project
230
- delete-project [projectid] Delete the project
231
- project-events [projectid] List the event info for the project
232
- project-tags [projectid] List the tags for the project
233
- project-commits [projectid] List the commit log for the project
234
- upload [projectid][--path,--ver,--desc] Upload the war package for java project
236
+ projects List created projects
237
+ create-project [project] Create a new project
238
+ delete-project [projectid] Delete the project
239
+ project-events [projectid] List the event info for the project
240
+ project-tags [projectid] List the tags for the project
241
+ project-commits [projectid] List the commit log for the project
242
+ upload [projectid] [--path,--ver,--desc] Upload the war package for java project
235
243
 
236
244
  Application
237
- apps [--projectid,--target] List deployed applications
238
- create-app [appname] Create a new application
239
- delete-app [appid] Delete the application
240
- delete-app <appname> <--target TARGET> Delete the application
241
- start-app [appid] Start the application
242
- start-app <appname> <--target TARGET> Start the application
243
- stop-app [appid] Stop the application
244
- stop-app <appname> <--target TARGET> Stop the application
245
- restart-app [appid] Restart the application
246
- restart-app <appname> <--target TARGET> Restart the application
247
- scale-app [appid] [--instance N] Scale the application instances up or down
248
- scale-app <appname> <--target TARGET> [--instance N] Scale the application instances up or down
249
- update-app [appid] [--ver VERSION] Update the application
250
- update-app <appname> <--target TARGET>[--ver VERSION] Update the application
251
- status [appid] Display resource usage for the application
252
- status <appname> <--target TARGET> Display resource usage for the application
253
- app-env [appid] Display the environments for the application
254
- app-env <appname> <--target TARGET> Display the environments for the application
255
- create-env [appid][--name,--value] Create the environment for the application
256
- create-env <appname><--target TARGET>[--name,--value] Create the environment for the application
257
- delete-env [appid] [--name NAME] Delete the environment for the application
258
- delete-env <appname> <--target TARGET> [--name NAME] Delete the environment for the application
259
- app-log [appid] List the logs for the application
260
- app-log <appname> <--target TARGET> List the logs for the application
261
-
245
+ apps [--projectid,--target] List deployed applications
246
+ create-app [appname] Create a new application
247
+ delete-app [appid] Delete the application
248
+ delete-app <appname> <--target TARGET> Delete the application
249
+ start-app [appid] Start the application
250
+ start-app <appname> <--target TARGET> Start the application
251
+ stop-app [appid] Stop the application
252
+ stop-app <appname> <--target TARGET> Stop the application
253
+ stop-app --graceful Stop the application in a graceful mode
254
+ restart-app [appid] Restart the application
255
+ restart-app <appname> <--target TARGET> Restart the application
256
+ restart-app --graceful --lazy Restart the application in a graceful and lazy mode
257
+ scale-app [appid] [--instance N] Scale the application instances up or down
258
+ scale-app <appname> <--target TARGET> [--instance N] Scale the application instances up or down
259
+ scale-app --graceful Scale the application instances in a graceful mode
260
+ update-app [appid] [--ver VERSION] Update the application
261
+ update-app <appname> <--target TARGET> [--ver VERSION] Update the application
262
+ update-app --graceful --lazy Update the application in a graceful and lazy mode
263
+ status [appid] Display resource usage for the application
264
+ status <appname> <--target TARGET> Display resource usage for the application
265
+ app-env [appid] Display the environments for the application
266
+ app-env <appname> <--target TARGET> Display the environments for the application
267
+ create-env [appid] [--name,--value] Create the environment for the application
268
+ create-env <appname> <--target TARGET> [--name,--value] Create the environment for the application
269
+ delete-env [appid] [--name NAME] Delete the environment for the application
270
+ delete-env <appname> <--target TARGET> [--name NAME] Delete the environment for the application
271
+ app-log [appid] [--instanceid,--file] List the logs for the application
272
+ app-log <appname> <--target TARGET> [--instanceid,--file] List the logs for the application
273
+ app-debug [appid] List the debug info for the application
274
+ app-debug <appname> <--target TARGET> List the debug info for the application
275
+
262
276
  Service
263
- app-service [appid] Display the binded services for the application
264
- app-service <appname> <--target TARGET> Display the binded services for the application
265
- bind-service [appid][--service SERVICE] Bind the services for the application
266
- bind-service <appname> <--target TARGET> [--service] Bind the services for the application
267
- unbind-service [appid][--service SERVICE] Unbind the services for the application
268
- unbind-service <appname> <--target TARGET>[--service] Unbind the services for the application
269
- services List dedicated services
270
- service [serviceid] List the connection info for the service
271
- export-service [serviceid] Export dedicated service url
272
- import-service [url] Import dedicated service
273
- check-service [serviceid] Check availability for the service
274
- delete-service [serviceid] Delete the service
275
- register-service [serviceid] [--target,--type] Register to target
276
- deregister-service [serviceid] [--target TARGET] Deregister to target
277
+ app-service [appid] Display the binded services for the application
278
+ app-service <appname> <--target TARGET> Display the binded services for the application
279
+ bind-service [appid] [--service SERVICE] Bind the services for the application
280
+ bind-service <appname> <--target TARGET> [--service] Bind the services for the application
281
+ bind-service --graceful --lazy Bind the services for the application in a graceful and lazy mode
282
+ unbind-service [appid] [--service SERVICE] Unbind the services for the application
283
+ unbind-service <appname> <--target TARGET> [--service] Unbind the services for the application
284
+ unbind-service --graceful --lazy Unbind the services for the application in a graceful and lazy mode
285
+ services List dedicated services
286
+ service [serviceid] List the connection info for the service
287
+ export-service [serviceid] Export dedicated service url
288
+ import-service [url] Import dedicated service
289
+ check-service [serviceid] Check availability for the service
290
+ delete-service [serviceid] Delete the service
291
+ register-service [serviceid] [--target,--type] Register to target
292
+ deregister-service [serviceid] [--target TARGET] Deregister to target
277
293
 
278
294
  DNS
279
- app-dns [appid] Display the mapped urls for the application
280
- app-dns <appname> <--target TARGET> Display the mapped urls for the application
281
- map-dns [appid] [--dns DNS] Map the urls for the application
282
- map-dns <appname> <--target TARGET> [--dns DNS] Map the urls for the application
283
- unmap-dns [appid] [--dns DNS] Unmap the urls for the application
284
- unmap-dns <appname> <--target TARGET> [--dns DNS] Unmap the urls for the application
285
- dns List the dns
286
- zones List the dns zones
287
- create-dns [dnsname] [--zoneid,--projectid,--desc] Create a new dns
288
- register-dns [dnsid] Register to target
289
- deregister-dns [dnsid] Deregister to target
290
- delete-dns [dnsid] Delete the dns
295
+ app-dns [appid] Display the mapped urls for the application
296
+ app-dns <appname> <--target TARGET> Display the mapped urls for the application
297
+ map-dns [appid] [--dns DNS] Map the urls for the application
298
+ map-dns <appname> <--target TARGET> [--dns DNS] Map the urls for the application
299
+ unmap-dns [appid] [--dns DNS] Unmap the urls for the application
300
+ unmap-dns <appname> <--target TARGET> [--dns DNS] Unmap the urls for the application
301
+ dns List the dns
302
+ zones List the dns zones
303
+ create-dns [dnsname] [--zoneid,--projectid,--desc] Create a new dns
304
+ register-dns [dnsid] [--target,--continent,--country] Register to target
305
+ deregister-dns [dnsid] [--recordid ID] Deregister to target
306
+ delete-dns [dnsid] Delete the dns
291
307
 
292
308
  ubuntu@admin:~$ pi help options
293
309
 
@@ -308,6 +324,13 @@ Available options:
308
324
  --service SERVICE
309
325
  --dns DNS
310
326
  --zoneid ID
327
+ --instanceid N
328
+ --file FILE
329
+ --continent CONT
330
+ --country COUNTRY
331
+ --recordid ID
332
+ --graceful
333
+ --lazy
311
334
  -t [TKEY]
312
335
  --trace [TKEY]
313
336
  -q, --quiet
@@ -317,8 +340,8 @@ Available options:
317
340
  -h, --help
318
341
  --options
319
342
 
320
- ubuntu@admin:~$ pi help start-app
321
- Usage: pi start-app [appid] or pi start-app <appname> <--target TARGET>
343
+ ubuntu@admin:~$ pi help stop-app
344
+ Usage: pi stop-app [appid] [--graceful] or pi stop-app <appname> <--target TARGET> [--graceful]
322
345
 
323
346
  ubuntu@admin:~$ pi projects
324
347
 
@@ -369,49 +392,51 @@ ubuntu@admin:~$ pi create-app
369
392
  2: target-hq
370
393
  Select Target: 1
371
394
  Selected Target: bst-dev
372
- Available memory: 1856 M
373
- 1: java
374
- 2: javagithub
375
- 3: javawj
376
- 4: railsgithub
377
- 5: railswj
378
- 6: sinatra
379
- 7: sinatra4rabbitmq
380
- 8: sinatra4redis
381
- Select Project: 1
382
- Selected Project: java
383
- Application Name: java
384
- 1: paashelp
395
+ Application Name: grails4redis
396
+ 1: grails4membase
397
+ 2: grails4redis
398
+ 3: javagithub
399
+ 4: javawj
400
+ 5: railsgithub
401
+ 6: railswj
402
+ 7: sinatra
403
+ 8: sinatra4rabbitmq
404
+ 9: sinatra4redis
405
+ 10: testdebug
406
+ Select Project: 2
407
+ Selected Project: grails4redis
408
+ 1: v3
385
409
  Select Version: 1
386
- Selected Version: paashelp
387
- URL: java.wangjing.bst-dev.samsungpaas.com
410
+ Selected Version: v3
411
+ URL: grails4redis.wangjing.bst-dev.samsungpaas.com
388
412
  Memory reservation (64M, 128M, 256M, 512M, 1G, 2G) [64M]:
389
- How many instances? [1]:
390
- Need debug? [yN]:
413
+ Available memory: 1984 M, maximum instances: 31
414
+ How many instances(from 1 to 31)? [1]:
415
+ Need debug? [yN]: y
391
416
  1: restart
392
417
  2: notify
393
- Reaction when service changed [notify]:
394
- Need monitor? [yN]:
395
- Creating application "java": .................................OK
418
+ Reaction when service changed [notify]: 1
419
+ Need graceful? [Yn]:
420
+ Need lazy? [Yn]:
421
+ Need monitor? [yN]: y
422
+ Creating application "grails4redis": ...........................................................Success to create appliation.
396
423
 
397
424
  ubuntu@admin:~$ pi apps
398
- +------+------------+----------+----------------------------------------------+-------------+----------+---------+-----------+-------------------+
399
- | ID | Target | App name | URL | Deploy Type | Version | Status | Instances | Running Instances |
400
- +------+------------+----------+----------------------------------------------+-------------+----------+---------+-----------+-------------------+
401
- | 1817 | ap-ne-test | java | java.wangjing.ap-ne-test.samsungpaas.com | binary | test | STARTED | 1 | 1 |
402
- | 1800 | target | javatest | javatest.wangjing.target.samsungpaas.com | binary | paashelp | ERROR | 1 | 1 |
403
- | 1803 | ap-ne-test | javatest | javatest.wangjing.ap-ne-test.samsungpaas.com | binary | paashelp | STARTED | 1 | 1 |
404
- | 1793 | ap-ne-test | test | test.wangjing.ap-ne-test.samsungpaas.com | binary | paashelp | ERROR | 1 | 0 |
405
- +------+------------+----------+----------------------------------------------+-------------+----------+---------+-----------+-------------------+
406
-
407
- ubuntu@admin:~$ pi apps --target ap-ne-test
408
- +------+------------+----------+----------------------------------------------+-------------+----------+---------+-----------+-------------------+
409
- | ID | Target | App name | URL | Deploy Type | Version | Status | Instances | Running Instances |
410
- +------+------------+----------+----------------------------------------------+-------------+----------+---------+-----------+-------------------+
411
- | 1817 | ap-ne-test | java | java.wangjing.ap-ne-test.samsungpaas.com | binary | test | STARTED | 1 | 1 |
412
- | 1803 | ap-ne-test | javatest | javatest.wangjing.ap-ne-test.samsungpaas.com | binary | paashelp | STARTED | 1 | 1 |
413
- | 1793 | ap-ne-test | test | test.wangjing.ap-ne-test.samsungpaas.com | binary | paashelp | ERROR | 1 | 0 |
414
- +------+------------+----------+----------------------------------------------+-------------+----------+---------+-----------+-------------------+
425
+ +------+-----------+--------------+-------------------------------------------------+-------------+----------+---------+-----------+-------------------+
426
+ | ID | Target | App name | URL | Deploy Type | Version | Status | Instances | Running Instances |
427
+ +------+-----------+--------------+-------------------------------------------------+-------------+----------+---------+-----------+-------------------+
428
+ | 2270 | target-hq | grails4redis | grails4redis.wangjing.target-hq.samsungpaas.com | binary | v3 | STARTED | 1 | 0 |
429
+ | 2413 | bst-dev | grails4redis | grails4redis.wangjing.bst-dev.samsungpaas.com | binary | v3 | STARTED | 1 | 1 |
430
+ | 2399 | bst-dev | testdebug | testdebug.wangjing.bst-dev.samsungpaas.com | binary | paashelp | STARTED | 1 | 1 |
431
+ +------+-----------+--------------+-------------------------------------------------+-------------+----------+---------+-----------+-------------------+
432
+
433
+ ubuntu@admin:~$ pi apps --target bst-dev
434
+ +------+---------+--------------+-----------------------------------------------+-------------+----------+---------+-----------+-------------------+
435
+ | ID | Target | App name | URL | Deploy Type | Version | Status | Instances | Running Instances |
436
+ +------+---------+--------------+-----------------------------------------------+-------------+----------+---------+-----------+-------------------+
437
+ | 2413 | bst-dev | grails4redis | grails4redis.wangjing.bst-dev.samsungpaas.com | binary | v3 | STARTED | 1 | 1 |
438
+ | 2399 | bst-dev | testdebug | testdebug.wangjing.bst-dev.samsungpaas.com | binary | paashelp | STARTED | 1 | 1 |
439
+ +------+---------+--------------+-----------------------------------------------+-------------+----------+---------+-----------+-------------------+
415
440
 
416
441
  ubuntu@admin:~$ pi stop-app
417
442
  1: all
@@ -419,13 +444,13 @@ ubuntu@admin:~$ pi stop-app
419
444
  3: target
420
445
  Select application by: 1
421
446
  Select application by all
422
- 1: test
423
- 2: javatest
424
- 3: javatest
425
- 4: java
426
- Select Application: 4
427
- Selected Application: java
428
- Stoping application 'java'(target:ap-ne-test): OK
447
+ 1: grails4redis
448
+ 2: testdebug
449
+ 3: grails4redis
450
+ Select Application: 2
451
+ Selected Application: testdebug
452
+ Need graceful? [Yn]:
453
+ Stoping application 'testdebug'(target:bst-dev): OK
429
454
 
430
455
  ubuntu@admin:~$ pi stop-app
431
456
  1: all
@@ -433,18 +458,22 @@ ubuntu@admin:~$ pi stop-app
433
458
  3: target
434
459
  Select application by: 2
435
460
  Select application by project
436
- 1: javagithub
437
- 2: javatest
438
- 3: javawj
439
- 4: railsgithub
440
- 5: railswj
441
- 6: sinatra
442
- Select Project: 2
443
- Selected Project: javatest
444
- 1: java
461
+ 1: grails4membase
462
+ 2: grails4redis
463
+ 3: javagithub
464
+ 4: javawj
465
+ 5: railsgithub
466
+ 6: railswj
467
+ 7: sinatra
468
+ 8: sinatra4rabbitmq
469
+ 9: sinatra4redis
470
+ 10: testdebug
471
+ Select Project: 10
472
+ Selected Project: testdebug
473
+ 1: testdebug
445
474
  Select Application: 1
446
- Selected Application: java
447
- The application 'java'(target:ap-ne-test) has already stopped.
475
+ Selected Application: testdebug
476
+ The application 'testdebug'(target:bst-dev) has already stopped.
448
477
 
449
478
  ubuntu@admin:~$ pi stop-app
450
479
  1: all
@@ -452,19 +481,30 @@ ubuntu@admin:~$ pi stop-app
452
481
  3: target
453
482
  Select application by: 3
454
483
  Select application by target
455
- 1: ap-ne-test
456
- 2: bst-dev
484
+ 1: bst-dev
485
+ 2: target-hq
457
486
  Select Target: 1
458
- Selected Target: ap-ne-test
459
- 1: test
460
- 2: javatest
461
- 3: java
462
- Select Application: 3
463
- Selected Application: java
464
- The application 'java'(target:ap-ne-test) has already stopped.
465
-
466
- ubuntu@admin:~$ pi start-app java --target ap-ne-test
467
- Starting application 'java'(target:ap-ne-test): .........................................................OK
487
+ Selected Target: bst-dev
488
+ 1: testdebug
489
+ 2: grails4redis
490
+ Select Application: 2
491
+ Selected Application: grails4redis
492
+ Need graceful? [Yn]:
493
+ Stoping application 'grails4redis'(target:bst-dev): OK
494
+
495
+ ubuntu@admin:~$ pi start-app grails4redis --target all
496
+ The application 'grails4redis'(target:target-hq) has already started.
497
+ Starting application 'grails4redis'(target:bst-dev): ..........................................Success to start application.
498
+
499
+ ubuntu@admin:~$ pi restart-app testdebug --target bst-dev --graceful --lazy
500
+ Restart application 'testdebug'(target:bst-dev): ........................................Success to start application.
501
+
502
+ ubuntu@admin:~$ pi app-debug testdebug --target bst-dev
503
+ +-------------+------------+---------+
504
+ | Debug IP | Debug Port | State |
505
+ +-------------+------------+---------+
506
+ | 23.22.37.20 | 52841 | RUNNING |
507
+ +-------------+------------+---------+
468
508
 
469
509
  ubuntu@admin:~$ pi status 1803
470
510
  +-------------+---------+--------+-----------+---------+--------------+------------+
@@ -872,9 +912,9 @@ Please input your name: ruanzhimin
872
912
  Please input your email: ruanzhimin@gmail.com
873
913
  Please input your password: ***
874
914
 
875
- Error (1007): Invalid github account.
915
+ Error (5001007): Invalid github account.
876
916
 
877
- ubuntu@admin:~$ pi project-events tmp4
917
+ ubuntu@admin:~$ pi project-events 12345678
878
918
 
879
- Error (3004): The project is not belongs to current account.Project name : tmp4
919
+ Error (4043004): The project is not belongs to current account.Project id : 12345678
880
920