Steps for deploying play application to a vps (on hostgator)

153 views
Skip to first unread message

codenature

unread,
Oct 6, 2011, 3:44:49 PM10/6/11
to play-framework
I have just finished my first play app which I'll love to deploy to my
vps account on hostgator. This server already hosts my other websites
which are developed in php.

I will appreciate your advice on how to go about the deployment
without messing up the other websites on the site.

Thank you.

Matt Hildebrand

unread,
Oct 6, 2011, 10:50:04 PM10/6/11
to play-fr...@googlegroups.com
You probably want a reverse proxy.  Apache can play this role:
If you have something like Varnish in front, that could serve as a reverse proxy instead.

Either way, the "http.path" configuration parameter may be useful:
For example, if the reverse proxy exposes the application at /foo, this config setting can tell Play to prepend /foo to the URLs it constructs so that the URLs the browser receives will actually work.

In the unlikely event that Play can use a dedicated IP address and/or port, you could also just expose it to the internet directly, without any reverse proxy in front.

-Matt



--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.


Reply all
Reply to author
Forward
0 new messages