@@ -23,7 +23,7 @@ From `rake deploy`
2323
2424```
2525Deploys 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.
2727Tasks include:
2828 Tag the release and pushes it to github
2929 Deploy the release to Heroku
@@ -36,36 +36,39 @@ usage: rake deploy TARGET=target_name
3636usage: rake deploy:{staging|production}
3737```
3838
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" : " git@github.com: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 : " git@github.com:wizarddevelopment/ourcoolapp.git"
71+
6972` ` `
7073
7174
0 commit comments