CHUVASH.eu

CHunky Universe of Vigourous Astonishing SHarepoint :)

Playing with play!

play! frameworkInspired 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

Change index.html and add some info in README.md (useful for github):

cd followup
vi app/views/Application/index.html
vi README.md

create a .gitignore file and save this:

/tmp
/modules
/lib
/test-result
/logs

create a repo on github and init it:

git init
git add .
git commit -m init
git remote add origin git@github.com:mirontoli/followup.git
git push -u origin master

Prepare for Heroku:

echo "web: play run --http.port=$PORT $PLAY_OPTS" > Procfile

Install heroku gem:

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

I had a virtual ubuntu server virtual machine where heroku already was installed so I created the application in that machine:

git clone git@github.com:mirontoli/followup.git
cd followup
vi Procfile
heroku create -s cedar
heroku rename fo11owup
git push heroku master

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Discovering SharePoint

And going crazy doing it

Bram de Jager talking Office 365, SharePoint and Azure

My view and thoughts on Productivity and more.

My programming life

and everything in between

SharePoint Development Lab by @avishnyakov

It is a good place to share some SharePoint stories and development practices.

SharePoint Dragons

Nikander & Margriet on SharePoint

RealActivity - Real-time and trustworthy

Blog site of founder, RealActivty - Paul J. Swider

Mai Omar Desouki - Avid SharePointer

Egyptian & Vodafoner - Senior SharePoint Consultant

Cameron Dwyer | Office 365, SharePoint, Outlook, OnePlace Solutions

Office 365, SharePoint, OnePlace Solutions & Life's Other Little Wonders

paul.tavares

Me and My doings!

Share SharePoint Points!!

By Mohit Vashishtha

Jimmy Janlén "Den Scrummande Konsulten"

Erfarenheter, synpunkter och raljerande om Scrum från Jimmy Janlén

SPJoel

SharePoint for everyone

SharePointRyan

Ryan Dennis is a SharePoint Solution Architect with a passion for SharePoint and PowerShell

SharePoint 2020

The Vision for a Future of Clarity

Aharoni in Unicode, ya mama

Treacle tarts for great justice

... And All That JS

JavaScript, Web Apps and SharePoint

blksthl

Mostly what I know about SharePoint - CommunicoCuspis

%d bloggers like this: