it's been a long time working on a play app & now comes the time to deploye it. that my first time so i'm kind of lost. which hosting compagny is the best & offer good pricing ?
-
can some one help me with this question? http://stackoverflow.com/questions/25447581/2-play-framework-application-with-single-httpd – Spidey Aug 26 '14 at 07:13
13 Answers
I'll probably post a detailed instruction of what I did, but here's a quick 2-min general idea.
Buy an Amazon Micro Instance Virtual Server (costs around $11/mo) with a debian squeeze (6.0) image
$> sudo apt-get install sun-java6-jdk6
$> sudo apt-get install mysql5
~: wget <playDownloadURL>
~: unzip *.zip
~: set path to java, play
sftp/scp your source code to /var/www/<yourApp>
$> cd /var/www/<yourApp>
$> play start
~: (not actual commands but the concept)
and you are in business.

- 1,323
- 18
- 31
-
2Have you used this for a production environment? Come across any issues? – j.davies Feb 26 '12 at 22:23
The creator company of Play Framework, Zenexity, propose a hosting solution dedicated to Play applications: PlayApps
It's probably the best choice since it is native Play hosting.
Otherwise, you can export your Play application as a classic war:
play war yourapp -o yourapp.war
Then, this war can be deployed on every Java server (Tomcat, Glassfish, etc.). For hosting a Java application server, you'll probably need a dedicated or virtualized server.
Another solution is to deploy your app on Google App Engine. But for that, you have to developp your Play application in a specific way. In particular, you can't use classic persistence. You have to use the Siena Play module to manage your entities for Google App Engine.
I don't know if Play apps can easily be deployed on other cloud structures. Maybe on Cloud Foundry since it supports Java application but I did not tested it and there are not deploy plugins yet for this platform.

- 7,014
- 31
- 42
-
5
-
Play2 no longer supports war files. There is a project to add this support but as I understand this will not work so I wouldn't count on it. – Shawn Vader Aug 20 '13 at 09:05
Cloudbees, http://cloudbees.com, is an excellent choice. There is even a Play Framework Module for it.

- 1,370
- 1
- 13
- 31
All of my Play! apps are hosted on Google App Engine, which is free for small sites. But you can host Play! apps on any Java web hosting provider.

- 2,745
- 20
- 24
-
what datasource/database do you use for applications hosted in GAE. I am kinda new to Play and i am thinking of deployment on GAE that is why curious. – Sikorski Jun 25 '12 at 08:03
-
I used the Google App Engine Datastore (https://developers.google.com/appengine/docs/java/datastore/). With Play 1.x, I used the Siena module to simplify using GAE's datastore. With Play 2.x, you can use https://github.com/mandubian/play-siena – Lawrence McAlpin Jun 26 '12 at 12:54
In this question Experiences on free and low-cost hosting for play framework applications?
there are several cloud options for play framework...
There are a number of cloud hosting solutions supported by Play. There is a module for Stax, and the message boards have mentioned success on several others. A quick search for 'deploy' on the google groups will show a number of options.
I would recommend PlayApps though, It is actually hosted on Ghandi (i think!) and the pricing plan is the same, so the Zenexity guys actually make no money from this. They have set it up to be a convenience to us developers.
GAE is an option, but it restricts what you can do with Play. The WAR file deployment option, allowing to deploy to any java servlet container is also an option, but adds the overhead and resource of the container unnecessarily, so again, not the best option.

- 54,176
- 10
- 96
- 129
You could try Play! Manager. It's a Manager for Play Applications much like the Tomcat Manager. Worth trying:

- 645
- 1
- 7
- 19
Lately I've been playing around with openshift for hosting playframework application
It looks really good, you have mysql, phpmyadmin, mongodb, mongorock, jenkins, and what's even more important, you get 5 applications with 500MB op data space for each one... for free...
I'm also using this play module to ease deployment to openshift
https://github.com/opensas/openshift/blob/master/documentation/manual/home.textile
have a look at these articles:

- 60,462
- 79
- 252
- 386
If anyone is interested on uploading on Linode please follow this thread.
I advise you to have a look at http://www.playframework-cloud.com
This PaaS platform can automatically scale up and down your application regarding your traffic. You can also finely customize if you want vertical, horizontal or both types of scalability. The consequence of this scaling is that you pay as you go : you only pay for your real consumption and not the potential one.
Deployment via git.
Non AWS, hosted in tier-4+ datacenters.
Free trial !

- 8,340
- 1
- 17
- 15
For AWS Boxfuse offers a very easy solution.
With Boxfuse's native Play 2 support you can now simply execute
boxfuse run my-play-app-1.0.zip -env=prod
and this will automatically:
- create a minimal AMI tailor-made for your Play 2 app
- create an elastic IP
- create a security group with the correct permissions
- launch an instance of your app
All future updates are performed as blue/green deployments with zero downtime.
This also works with Elastic Load Balancers and Auto-Scaling Groups and the Boxfuse free tier is designed to fit the AWS free tier, which effectively means that you can deploy your app at no cost.
You can read more about it here: https://boxfuse.com/blog/playframework-aws
Disclaimer: I'm the founder and CEO of Boxfuse

- 34,542
- 16
- 106
- 137
I would look into cloud hosting.
If you developed your application in .NET, look into Windows Azure.
Otherwise, check out Amazon EC2.
Little confusing to setup if your a firs-timer, but they have guides and stuff to help you through it, and you get 100% scalability going with the cloud.

- 23,528
- 42
- 122
- 184
-
He said he developed the application with Java, and the Play! framework... where'd you get .NET? – bdd May 31 '11 at 23:16
-
I was just bringing up the cloud and showing that there are two basic versions he can go with. Right now it makes more sense to stick with Amazon. Java has plenty of EC2 frameworks. – slandau Jun 01 '11 at 13:09
-
-1 for this answer. OP is asking for specific hosting options for Play, not general cloud hosting options. – RyanBrady Nov 17 '11 at 11:38