pi 0.1.27 → 0.1.28
Sign up to get free protection for your applications and to get access to all the features.
- data/README +253 -213
- data/lib/cli/choose_helper.rb +20 -25
- data/lib/cli/commands/apps.rb +31 -35
- data/lib/cli/commands/dns.rb +37 -13
- data/lib/cli/commands/projects.rb +2 -2
- data/lib/cli/commands/services.rb +8 -8
- data/lib/cli/commands/user.rb +5 -2
- data/lib/cli/runner.rb +17 -12
- data/lib/cli/usage.rb +4 -4
- data/lib/cli/version.rb +1 -1
- data/lib/pi/client.rb +12 -10
- metadata +4 -4
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]
|
63
|
-
logout
|
64
|
-
info
|
65
|
-
user
|
66
|
-
targets
|
67
|
-
password [oldpassword] [--password PASS]
|
68
|
-
github [name] [--email,--password]
|
69
|
-
runtimes
|
70
|
-
frameworks
|
71
|
-
version
|
72
|
-
help [command]
|
73
|
-
help 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
|
77
|
-
create-project [project]
|
78
|
-
delete-project [projectid]
|
79
|
-
project-events [projectid]
|
80
|
-
project-tags [projectid]
|
81
|
-
project-commits [projectid]
|
82
|
-
upload [projectid][--path,--ver,--desc]
|
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]
|
86
|
-
create-app [appname]
|
87
|
-
delete-app [appid]
|
88
|
-
delete-app <appname> <--target TARGET>
|
89
|
-
start-app [appid]
|
90
|
-
start-app <appname> <--target TARGET>
|
91
|
-
stop-app [appid]
|
92
|
-
stop-app <appname> <--target TARGET>
|
93
|
-
|
94
|
-
restart-app
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
app
|
102
|
-
app
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
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]
|
112
|
-
app-service <appname> <--target TARGET>
|
113
|
-
bind-service [appid][--service SERVICE]
|
114
|
-
bind-service <appname> <--target TARGET> [--service]
|
115
|
-
|
116
|
-
unbind-service
|
117
|
-
services
|
118
|
-
service
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
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]
|
128
|
-
app-dns <appname> <--target TARGET>
|
129
|
-
map-dns [appid] [--dns DNS]
|
130
|
-
map-dns <appname> <--target TARGET> [--dns DNS]
|
131
|
-
unmap-dns [appid] [--dns DNS]
|
132
|
-
unmap-dns <appname> <--target TARGET> [--dns DNS]
|
133
|
-
dns
|
134
|
-
zones
|
135
|
-
create-dns [dnsname] [--zoneid,--projectid,--desc]
|
136
|
-
register-dns [dnsid]
|
137
|
-
deregister-dns [dnsid]
|
138
|
-
delete-dns [dnsid]
|
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.
|
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]
|
215
|
-
logout
|
216
|
-
info
|
217
|
-
user
|
218
|
-
targets
|
219
|
-
password [oldpassword] [--password PASS]
|
220
|
-
github [name] [--email,--password]
|
221
|
-
runtimes
|
222
|
-
frameworks
|
223
|
-
version
|
224
|
-
help [command]
|
225
|
-
help 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
|
229
|
-
create-project [project]
|
230
|
-
delete-project [projectid]
|
231
|
-
project-events [projectid]
|
232
|
-
project-tags [projectid]
|
233
|
-
project-commits [projectid]
|
234
|
-
upload [projectid][--path,--ver,--desc]
|
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]
|
238
|
-
create-app [appname]
|
239
|
-
delete-app [appid]
|
240
|
-
delete-app <appname> <--target TARGET>
|
241
|
-
start-app [appid]
|
242
|
-
start-app <appname> <--target TARGET>
|
243
|
-
stop-app [appid]
|
244
|
-
stop-app <appname> <--target TARGET>
|
245
|
-
|
246
|
-
restart-app
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
app
|
254
|
-
app
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
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]
|
264
|
-
app-service <appname> <--target TARGET>
|
265
|
-
bind-service [appid][--service SERVICE]
|
266
|
-
bind-service <appname> <--target TARGET> [--service]
|
267
|
-
|
268
|
-
unbind-service
|
269
|
-
services
|
270
|
-
service
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
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]
|
280
|
-
app-dns <appname> <--target TARGET>
|
281
|
-
map-dns [appid] [--dns DNS]
|
282
|
-
map-dns <appname> <--target TARGET> [--dns DNS]
|
283
|
-
unmap-dns [appid] [--dns DNS]
|
284
|
-
unmap-dns <appname> <--target TARGET> [--dns DNS]
|
285
|
-
dns
|
286
|
-
zones
|
287
|
-
create-dns [dnsname] [--zoneid,--projectid,--desc]
|
288
|
-
register-dns [dnsid]
|
289
|
-
deregister-dns [dnsid]
|
290
|
-
delete-dns [dnsid]
|
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
|
321
|
-
Usage: pi
|
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
|
-
|
373
|
-
1:
|
374
|
-
2:
|
375
|
-
3:
|
376
|
-
4:
|
377
|
-
5:
|
378
|
-
6:
|
379
|
-
7:
|
380
|
-
8:
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
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:
|
387
|
-
URL:
|
410
|
+
Selected Version: v3
|
411
|
+
URL: grails4redis.wangjing.bst-dev.samsungpaas.com
|
388
412
|
Memory reservation (64M, 128M, 256M, 512M, 1G, 2G) [64M]:
|
389
|
-
|
390
|
-
|
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
|
395
|
-
|
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
|
400
|
-
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
|
412
|
-
|
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:
|
423
|
-
2:
|
424
|
-
3:
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
Stoping application '
|
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:
|
437
|
-
2:
|
438
|
-
3:
|
439
|
-
4:
|
440
|
-
5:
|
441
|
-
6:
|
442
|
-
|
443
|
-
|
444
|
-
|
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:
|
447
|
-
The application '
|
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:
|
456
|
-
2:
|
484
|
+
1: bst-dev
|
485
|
+
2: target-hq
|
457
486
|
Select Target: 1
|
458
|
-
Selected Target:
|
459
|
-
1:
|
460
|
-
2:
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
ubuntu@admin:~$ pi start-app
|
467
|
-
|
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 (
|
915
|
+
Error (5001007): Invalid github account.
|
876
916
|
|
877
|
-
ubuntu@admin:~$ pi project-events
|
917
|
+
ubuntu@admin:~$ pi project-events 12345678
|
878
918
|
|
879
|
-
Error (
|
919
|
+
Error (4043004): The project is not belongs to current account.Project id : 12345678
|
880
920
|
|