Friday, December 23, 2011

How do deploy Play! on Jelastic and Heroku ...

http://www.youtube.com/watch?v=SHA5aITE7Ak

HEROKU:
1. create a helloworld app by following http://www.playframework.org/documentation/1.1/firstapp
2. > cd helloworld
3. > git init
4. create .gitignore and add folders to be ignored
5. > git add .
6. > git commit -m init
7. > heroku create -s cedar
8. > git push heroku master
...
-----> Launching... done, v5
http://growing-warrior-4634.herokuapp.com deployed to Heroku

note: if you want to change a new name instead of using growing-warrior-4634, then you can do the following.
1. helloworld> git remote rm heroku
2. helloworld> git remote add heroku git@heroku.com:david-play-hello.git
3. helloworld> git push heroku master
then the new URL will be http://david-play-hello.herokuapp.com
- or -
1. heroku rename david-play-hello --app growing-warrior-4634

JELASTIC:
1. cd helloworld
2. > play war --output=../hello --zip
3. > cd ..
4. > ls hello.war
5. Navigate to jelastic.com and login
6. Upload hello.war and deploy it under Play

No comments: