OSDN Git Service

Regular updates
[twpd/master.git] / deis.md
1 ---
2 title: Deis
3 category: Devops
4 layout: 2017/sheet
5 ---
6
7 ### Deploy
8
9 ```
10 deis create app-name
11 git push deis master
12 deis open
13 ```
14
15 ### Deploy dockerfile
16
17 ```sh
18 $ deis create app-name
19 $ deis pull redis:latest
20   Creating build...  done, v2
21 # default process type is `cmd`
22 ```
23
24 ### Config
25
26 ```
27 deis config:list
28 deis config:set FOO=bar BAZ=foo
29 deis config:unset FOO
30 deis config:pull  # writes to .env
31 deis config:push  # reads from .env
32 ```
33
34 ### Managing instances
35
36 ```
37 deis logs
38 deis run rake db:migrate
39 deis ps
40 ```
41
42 ### Custom domains
43
44 ```
45 deis domains:list
46 deis domains:add www.myapp.com
47 deis domains:remove www.myapp.com
48 ```
49
50 ### Limits
51
52 ```sh
53 deis limits:set web=1G
54 deis limits:set web=1024 --cpu
55 # (`web` is a process type)
56 ```
57
58 ### Sharing
59
60 ```
61 deis perms:create otheruser
62 ```
63
64 ### SSL
65
66 ```
67 deis certs:add server.crt server.key
68 ```
69
70 See: [SSL](http://docs.deis.io/en/latest/using_deis/app-ssl/)