You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After resources are created, you can list the resources in this application.
30
78
31
79
$ drycc resources:list
32
80
=== scenic-icehouse resources
33
-
memcachedmemcached:custom
81
+
redisredis:1000
34
82
35
83
## Bind resources
36
84
37
-
The resource which is named memcached is created, you can bind the memcached to the application,
38
-
use the command of `drycc resources:bind memcached`.
85
+
The resource which is named redis is created, you can bind the redis to the application,
86
+
use the command of `drycc resources:bind redis`.
39
87
40
-
$ drycc resources:bind memcached
88
+
$ drycc resources:bind redis
41
89
Binding resource... done
42
90
43
91
## Describe resources
44
92
45
93
And use `drycc resources:describe` show the binding detail. If the binding is successful, this command will show the information of connect to the resource.
46
94
47
-
$ drycc resources:describe memcached
48
-
=== scenic-icehouse resource memcached
49
-
plan: memcached:custom
50
-
status: Ready
51
-
binding: Ready
95
+
$ drycc resources:describe redis
96
+
=== scenic-icehouse resource redis
97
+
plan: redis:1000
98
+
status: Ready
99
+
binding: Ready
52
100
53
-
HOST: 10.1.7.241 10.1.7.101
54
-
PORT: 11211
101
+
REDISPORT: 6379
102
+
REDIS_PASSWORD: RzG87SJWG1
103
+
SENTINELHOST: 172.16.0.2
104
+
SENTINELPORT: 26379
55
105
56
106
## Update resources
57
107
58
108
You can use the `drycc resources:update` command to upgrade a new plan.
59
109
An example of how to upgrade the plan's capacity to 100MB:
60
110
61
-
$ drycc resources:update memcached:100 memcached
62
-
Updating memcached to scenic-icehouse... done
111
+
$ drycc resources:update redis:10000 redis
112
+
Updating redis to scenic-icehouse... done
63
113
64
114
## Remove the resource
65
115
66
116
If you don't need resources, use `drycc resources:unbind` to unbind the resource and then use `drycc resources:destroy` to delete the resource from the application.
67
117
Before deleting the resource, the resource must be unbinded.
0 commit comments