Linode 512 and play! framework
Asked Answered
E

3

1

I'm a noob and I'm looking for some help on how to run my play framework on Linode 512. I'm using a debian image.My question is if I can just install java and then play! framework and just run it like that or do I need any front-end server to act like a proxy.

Sorry for the noobish question. Thanks

Enfold answered 20/6, 2012 at 15:12 Comment(1)
My project is developed under version 1.2.4 so i'm going to use that.Enfold
L
3

Play framework is a complete stack. You can run it without any front end server acting as a proxy. However, if you also want to have SSL (although Play has SSL support, it is recommended to use a complete HTTP server to handle this), or you want to run multiple Play applications that appear on the same port, then you need an HTTP server to front it.

Laundryman answered 20/6, 2012 at 15:56 Comment(2)
Thanx for the quick reply.is it gonna be ok running on linode 512 without limiting the memory with -xms ?I'm afraid that i will have memory issuesEnfold
i've not used play with linode512, but play is fairly efficient with its memory usageLaundryman
E
1

Simple steps for play framework deployment in Linode.

  1. Buy your own Linode ( I have the 512 )
  2. Connect to your linode via ssh
  3. Do some basic stuff(like setting up user,ssh,hostnames,iptables etc)
  4. Download the play framework version that you prefer with (wget)
  5. Download your favourite database and set it up
  6. Run play! framework with:

play start MyApplication

or

play run MyApplication

And you have a running application by this step.Enjoy!

If you need more advanced things (like SSL,load balancing and multiple instances) try using a front server such as nginx and do the appropriate configurations

I hope this will help someone ;)

Enfold answered 20/6, 2012 at 15:12 Comment(0)
S
0

If you ever need to support AJAX calls (XHR) to other ports or domains from your application and you don't want to use CORS to deal with working around the SOP of the browser (don't use CORS - it will give you problems with accepting session cookies) then you will want to use apache as a reverse proxy in front of your play application on Linode. This could also be a form of cheap load balancing later - but that configuration is more involved than a simple reverse proxy.

I have a play application and a GWT GUI and am using apache reverse proxy to allow my GWT requests to the Play RESTful web services to be properly authenticated with the PLAY_SESSION cookie. It all works really well.

Sport answered 9/9, 2014 at 1:52 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.