Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Play framework deployment to web host

I'm looking for the best way to host my simple projects that I've done on the Play Framework. The developers for Play recommend just deploying it as a stand-alone, rather than using a web application container like Tomcat, though it can be done.

Are there good web hosts out there that can host my play application as a stand-alone?

I'm guessing this may mean getting a VPS, but I'm hoping for something like the cheaper hosting sites rather than the $40/month for a VPS.

I realize this question may reach a bit beyond the scope of stack overflow, but I think it is still a viable question to ask here; I'm looking for the best way to deploy the code I've written to be used by anybody across the internet.

like image 491
Indigenuity Avatar asked Dec 04 '11 20:12

Indigenuity


People also ask

Is Play framework still used?

Play is rock-solid and used by hundreds of thousands of Java and Scala developers every month. Play is still extremely relevant to today's application and web development and has a passionate and very capable community around it ensuring that it has many good years left.

How do I import a play framework project into Eclipse?

You then need to import the application into your Workspace with the File/Import/General/Existing project… menu (compile your project first). To debug, start your application with sbt -jvm-debug 9999 run and in Eclipse right-click on the project and select Debug As, Debug Configurations.


3 Answers

I have deployed a few apps, both to Google App Engine (GAE) and Heroku.

GAE restricts what you can do with Play, and forces some compromises. So, it depends on how simple your project is. If you use a database, then I would not recommend GAE if your app is already built, as you will need to use a different persistence layer, as JPA is not supported.

Heroku is excellent. It is very simple to use, and works just like your localhost version. If your site is simple, with low traffic, then it is great, but can get quite expensive as it grows.

GAE/Heroku are both free for small sites that use limited resources.

If you want cheap, but not free, then PlayApps is the way to go. It was built and designed by Zenexity, who developed Play. The PlayFramework.org website is also hosted on PlayApps, using the cheapest option of €10 per month.

There are a number of other options, but personally I would only consider PlayApps.net or Heroku.

like image 61
Codemwnci Avatar answered Nov 07 '22 12:11

Codemwnci


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 ;)

like image 21
Régis Avatar answered Nov 07 '22 12:11

Régis


I haven't tested any of this myself. But there are several options to deploy your play application.

  • Playapps.net is a streamlined deployment environment designed to get your Play applications up and running quickly and efficiently. It was created with the simplicity of the Play framework in mind and each slot includes all services needed to run your application without the hassle of running your own server.

  • Heroku (pronounced her-OH-koo) is a cloud application platform – a new way of building and deploying web apps. It supports natively Play, out of the box, no module, no wars, no extra stuff, just your plain application.

  • A Play application can very easily be deployed to the GAE. It is a matter of installing the relevant GAE module.

  • Easy deployment to the Stax cloud hosting platform: again nothing could be easier. Install the Stax module and deploy within seconds. Refer to the module documentation for more information.

Also refer to the deploy documentation

like image 3
Oliver Sauder Avatar answered Nov 07 '22 11:11

Oliver Sauder