@@ -23,7 +23,7 @@ From `rake deploy`
23
23
24
24
```
25
25
Deploys the currently checked out revision to Heroku.
26
- Reads the project's app.json file to determine tasks for a target.
26
+ Reads the project's deploy.yml file to determine tasks for a target.
27
27
Tasks include:
28
28
Tag the release and pushes it to github
29
29
Deploy the release to Heroku
@@ -36,36 +36,39 @@ usage: rake deploy TARGET=target_name
36
36
usage: rake deploy:{staging|production}
37
37
```
38
38
39
- ## Example app.json
40
-
41
- This is very similar and compatible with Heroku's ` app.json ` .
42
-
43
- ``` json
44
- {
45
- "name" : " Our Cool App" ,
46
- "description" : " Great app to use all the time." ,
47
- "website" : " https://www.ourcoolapp.com" ,
48
- "heroku-environments" : {
49
- "staging" : {
50
- "app-name" : " ourcoolapp-staging" ,
51
- "tag-name" : false ,
52
- "force-push" : true ,
53
- "scripts" : [
54
- { "cmd" : " rake db:migrate" , "restart" : true }
55
- ]
56
- },
57
- "production" : {
58
- "app-name" : " ourcoolapp-production" ,
59
- "force-push" : false ,
60
- "tag-name" : " prod" ,
61
- "scripts" : [
62
- { "cmd" : " rake db:migrate" , "restart" : true , "remote" : true },
63
- { "cmd" : " say 'deploy complete'" }
64
- ]
65
- }
66
- },
67
- "source-repo" :
" [email protected] :wizarddevelopment/ourcoolapp.git"
68
- }
39
+ ## Example deploy.yml
40
+
41
+ This is very similar to Heroku's ` app.json ` but as a yml file
42
+
43
+ ``` yml
44
+ ---
45
+ name : Our Cool App
46
+ description : Great app to use all the time.
47
+ website : " https://www.ourcoolapp.com"
48
+ heroku-environments :
49
+ staging :
50
+ app-name : " ourcoolapp-staging"
51
+ tag-name : false
52
+ force-push : true
53
+ scripts :
54
+ - cmd : " rake db:migrate"
55
+ restart : true
56
+ remote : true
57
+ - cmd : " rake coolapp:do_something_on_deploy"
58
+ remote : true
59
+ production :
60
+ app-name : " ourcoolapp-production"
61
+ force-push : false
62
+ tag-name : prod
63
+ scripts :
64
+ - cmd : " rake db:migrate"
65
+ restart : true
66
+ remote : true
67
+ - cmd : " rake coolapp:do_something_on_deploy"
68
+ remote : true
69
+ - cmd : " say 'deploy complete'"
70
+ source-repo :
" [email protected] :wizarddevelopment/ourcoolapp.git"
71
+
69
72
` ` `
70
73
71
74
0 commit comments