Play框架应用程序部署

发布于 2024-11-03 20:24:23 字数 75 浏览 0 评论 0原文

开发游戏应用程序和游戏已经很长时间了。现在是部署它的时候了。这是我第一次,所以我有点迷失。哪家托管公司是最好的&提供良好的定价?

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 ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(13

﹏半生如梦愿梦如真 2024-11-10 20:24:23

我可能会发布我所做的详细说明,但这里有一个 2 分钟的快速总体思路。

购买带有 debian squeeze (6.0) 映像的 Amazon 微型实例虚拟服务器(价格约为 11 美元/月),

gt; sudo apt-get install sun-java6-jdk6
gt; sudo apt-get install mysql5
~: wget <playDownloadURL>
~: unzip *.zip
~: set path to java, play

sftp/scp your source code to /var/www/<yourApp>
gt; cd /var/www/<yourApp>
gt; play start 
~: (not actual commands but the concept)

然后您就可以开始做生意了。

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

gt; sudo apt-get install sun-java6-jdk6
gt; sudo apt-get install mysql5
~: wget <playDownloadURL>
~: unzip *.zip
~: set path to java, play

sftp/scp your source code to /var/www/<yourApp>
gt; cd /var/www/<yourApp>
gt; play start 
~: (not actual commands but the concept)

and you are in business.

南街女流氓 2024-11-10 20:24:23

Play Framework 的创建公司 Zenexity 提出了专用于 Play 应用程序的托管解决方案:PlayApps

这可能是最好的选择,因为它是本地 Play 托管。


否则,您可以将 Play 应用程序导出为经典 war:

play war yourapp -o yourapp.war

然后,该 war 可以部署在每个 Java 服务器(Tomcat、Glassfish 等)上。为了托管 Java 应用程序服务器,您可能需要专用或虚拟化服务器。


另一种解决方案是在 Google App Engine 上部署您的应用。但为此,您必须以特定的方式开发您的 Play 应用程序。特别是,您不能使用经典持久性。您必须使用 Siena Play 模块来管理 Google App Engine 的实体。

我不知道 Play 应用程序是否可以轻松部署在其他云结构上。也许在 Cloud Foundry 上,因为它支持 Java 应用程序,但我没有测试它,而且还没有为此部署插件平台。

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.

牵你的手,一向走下去 2024-11-10 20:24:23

你可以看看这个方向 Heroku

You can look at this direction Heroku

小霸王臭丫头 2024-11-10 20:24:23

Cloudbees,http://cloudbees.com,是一个很好的选择。甚至还有一个 Play 框架模块。

http://www.playframework.org/modules/cloudbees-0.1/home

Cloudbees, http://cloudbees.com, is an excellent choice. There is even a Play Framework Module for it.

http://www.playframework.org/modules/cloudbees-0.1/home

空心空情空意 2024-11-10 20:24:23

我所有的游戏!应用程序托管在 Google App Engine 上,对于小型网站来说是免费的。但您可以主持 Play!任何 Java Web 托管提供商上的应用程序。

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.

如痴如狂 2024-11-10 20:24:23

在这个问题中免费和低成本的经验托管 Play 框架应用程序?

Play 框架有多种云选项...

In this question Experiences on free and low-cost hosting for play framework applications?

there are several cloud options for play framework...

花开雨落又逢春i 2024-11-10 20:24:23

Play 支持多种云托管解决方案。有一个用于 Stax 的模块,留言板提到了其他几个模块的成功。在谷歌群组中快速搜索“部署”将显示许多选项。

不过我会推荐 PlayApps,它实际上是在 Ghandi 上托管的(我认为!)并且定价计划是相同的,所以 Zenexity 的人实际上并没有从中赚到钱。他们设置它是为了方便我们开发人员。

GAE 是一个选项,但它限制了您可以使用 Play 执行的操作。允许部署到任何 java servlet 容器的 WAR 文件部署选项也是一个选项,但会不必要地增加容器的开销和资源,因此这也不是最佳选择。

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.

一笑百媚生 2024-11-10 20:24:23

你可以试试玩!经理。它是 Play 应用程序的管理器,与 Tomcat 管理器非常相似。值得尝试:

https://github.com/mbarbieri/playmanager

You could try Play! Manager. It's a Manager for Play Applications much like the Tomcat Manager. Worth trying:

https://github.com/mbarbieri/playmanager

蓝戈者 2024-11-10 20:24:23

最近我一直在使用 openshift 来托管 playframework 应用程序

它看起来非常好,你有 mysql、phpmyadmin、mongodb、mongorock、jenkins,更重要的是,你得到 5 个应用程序,每个应用程序都有 500MB 的操作数据空间。 . 免费...

我还使用这个 play 模块来轻松部署到 openshift

https://github.com/opensas/openshift/blob/master/documentation /manual/home.textile

看看这些文章:

playlatam.wordpress.com

详细的github教程

在 openshift 网站上找到的文章

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:

playlatam.wordpress.com

detailed github tutorial

article found at openshift's site

醉生梦死 2024-11-10 20:24:23

如果有人有兴趣在 Linode 上上传,请关注此帖子。

Linode 512 开始玩吧!框架

If anyone is interested on uploading on Linode please follow this thread.

Linode 512 and play! framework

虐人心 2024-11-10 20:24:23

我建议你看看 http://www.playframework-cloud.com

这个PaaS平台可以根据您的流量自动扩展和缩小您的应用程序。如果您需要垂直、水平或两种类型的可扩展性,您还可以进行精细定制。这种扩展的结果是您按需付费:您只需为实际消费付费,而不为潜在消费付费。

通过 git 部署。

非 AWS,托管在 4+ 级数据中心。

免费试用!

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 !

兲鉂ぱ嘚淚 2024-11-10 20:24:23

对于 AWS Boxfuse 提供了一个非常简单的解决方案。

借助 Boxfuse 的原生 Play 2 支持,您现在只需执行

boxfuse run my-play-app-1.0.zip -env=prod

即可自动:

  • 创建为您的 Play 2 应用量身定制的最小 AMI
  • 创建弹性 IP
  • 创建具有正确权限的安全组
  • 启动应用程序的实例

所有未来的更新都将作为蓝/绿部署执行,停机时间为零。

这也适用于弹性负载均衡器和自动扩展组,并且 Boxfuse 免费套餐旨在适应 AWS 免费套餐,这实际上意味着您可以免费部署应用程序。

您可以在这里阅读更多相关信息:https://boxfuse.com/blog/playframework-aws

免责声明:我是 Boxfuse 的创始人兼首席执行官

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

§对你不离不弃 2024-11-10 20:24:23

我会研究云托管。

如果您使用 .NET 开发应用程序,请查看 Windows Azure

否则,请查看 Amazon EC2

如果您是新手,设置起来有点困惑,但他们有指南和东西可以帮助您完成它,并且您可以通过云获得 100% 的可扩展性。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文