- Deploy a Spring + Tomcat Java app. Make changes and redeploy.
- Heroku Basics: Logging, Scaling, Configuring, Collaborating, Extending
- Deploy Play Framework on Heroku
-
Either:
- Eclipse with EGit & M2E Plugins
-
Or:
- Go to: java.heroku.com
- Clone the Spring + Tomcat app
- Test out the new app
- Follow the instructions on the app's index page to copy the app to your local machine
- Make a change
- Test the change locally
- Push the change
-
Logging
heroku logs -t -
Scaling
heroku scale web=2 -
Configuring
heroku config:add FOO=bar heroku config -
Collaborating
heroku sharing:add jw+demo@heroku.com -
Extending with Heroku Add-ons
heroku addons:add papertrail
-
Create a new Play app:
play new foo -
Test the app locally:
cd foo play ~runOpen: http://localhost:9000
-
Change the
app/views/index.scala.htmlfile -
Test the change locally
-
Create a new git repo, add the files, commit:
git init git add . git commit -m init -
Create a new app on Heroku:
heroku create -s cedar -
Deploy the app:
git push heroku master -
Test the app on Heroku:
heroku open