diff --git a/spring-data-neo4j-examples/todos/readme.md b/spring-data-neo4j-examples/todos/readme.md index c4a2fe138..ac83f0f1b 100644 --- a/spring-data-neo4j-examples/todos/readme.md +++ b/spring-data-neo4j-examples/todos/readme.md @@ -15,9 +15,9 @@ To prepare for deploying to Heroku, you must first become a Hero: Feel ready? OK, then get a copy of this project and checkout the heroku-deploy branch: ```bash -git clone git://github.com/akollegger/sdn-todos.git -cd sdn-todos -git checkout heroku-deploy +git clone git://github.com/SpringSource/spring-data-neo4j.git +cp -r spring-data-neo4j/spring-data-neo4j-examples/todos . +cd todos ``` Local build and run @@ -37,7 +37,7 @@ mvn package sh target/bin/webapp ``` -* check that it is working +* check that it is working (in another terminal, but same project directory) ```bash ./bin/todo mk "tweet high praises to @neo4j" @@ -50,12 +50,21 @@ Satisfied? Then `ctrl-c` to kill the application. Deploy on Heroku ---------------- -Create a new provisioning stack on Heroku for the app. +Initialize a local git repository: + +```bash +git init . +git add . +git commit -m "the start of my own todo application" +``` + +Create a new provisioning stack on Heroku for the app. Heroku will notice that you've got +a git repository, adding itself as a remote. ```bash heroku create --stack cedar` heroku addons:add neo4j -git push heroku heroku-deploy:master +git push heroku master ``` Check to make sure it is running with `heroku ps`, which should show a `web.1` process with an "up" state. @@ -73,6 +82,9 @@ which can take you to Neo4j's Webadmin. Have fun! For details about preparing your own Spring Data Neo4j application for deployment to Heroku, see the Heroku chapter in "Good Relationships: The Spring Data Neo4j Guide Book". +Don't forget to decommission the Heroku application when you're done with it. +Use `heroku destroy` to free up the instance. + CLI Tool --------