Playing with play!
By Anatoly Mironov
play! framework Inspired by ComputerSweden I played with Play! Here I’ll just put some commands to create and deploy a Play! web application, actually more for myself, to remember the steps to get started quickly. It would be great of course, if someone else finds it useful. The code for this little simple app. Play! is a java based framework for web applications. It reminds the rails framework and provides many useful features as CRUD, REST and more out of the box. In this post I create an download play and unpack in your home directory add to your path and save this in login script (.bashrc)
export PATH=/home/mirontoli/play-1.2.4/:$PATH
echo -e ‘\\nexport PATH=/home/mirontoli/play-1.2.4/:$PATH’ >> ~/.bashrc
```Create a new Play! web app:
play new followup
cd followup vi app/views/Application/index.html vi README.md
/tmp /modules /lib /test-result /logs
git init git add . git commit -m init git remote add origin git@github.com:mirontoli/followup.git git push -u origin master
echo “web: play run –http.port=$PORT $PLAY_OPTS” > Procfile
sudo apt-get install rubygems export PATH=/var/lib/gems/1.8/bin:$PATH echo -e ‘\nexport PATH=/var/lib/gems/1.8/bin:$PATH’ » ~/.bashrc sudo gem install heroku heroku keys:add
git clone git@github.com:mirontoli/followup.git cd followup vi Procfile heroku create -s cedar heroku rename fo11owup git push heroku master
[![](https://sharepointkunskap.files.wordpress.com/2011/12/heroku_create_play.png "heroku_create_play")](https://sharepointkunskap.files.wordpress.com/2011/12/heroku_create_play.png)