跳转至

部署

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$ vapor cloud deploy 
app: TILApp
git: https://github.com/wangzhizhou/TILApp-BackEnd.git
env: production
db: yes
replicas: 1
replica size: free
branch: master
build: incremental
Creating deployment [Done]
Connecting to build logs ...
Waiting in Queue [Done]
Checkout branch 'master' [Done]
Verifying base folder [Done]
Selected swift version: 4.1.0 [Done]
Building vapor (release) [Done]
Trying to find executable [Done]
Found executable: Run [Done]
Creating container registry [Done]
Building container [Done]
Pushing container to registry [Done]
Updating replicas [Done]
Deployment succeeded: https://joker.vapor.cloud [Done]
Successfully deployed.

取消部署并删除

首先需要把部署的机器数变为0

1
$  vapor cloud deploy --replicas=0

然后在Vapor云上自己的帐号中,从内到外一级一级删除。