在无头 Linux 服务器上部署 Smalltalk Web 应用程序

发布于 2024-08-16 16:58:08 字数 222 浏览 8 评论 0原文

我们使用 Pharo 和 Seaside 编写了一个小型原型 Web 应用程序,现在我们想向大家演示该应用程序可以部署到我们的标准 Linux 版本中。我们混合使用 CentOS、Ubuntu Server 和 Gentoo,它们都是无头运行的,因为我们的大多数应用程序都是基于 JAVA/Apache 的。只有80和443端口对外开放。

您在托管 Seaside/Smalltalk 服务器端应用程序时有何体验?

We wrote a small prototype web app using Pharo and Seaside and we want to now demonstrate to the suits that the app can be deployed into our standard Linux build. We use a mix of CentOS, Ubuntu Server and Gentoo which are run headless since most of our apps are JAVA/Apache based. Only port 80 and 443 are open to the outside world.

What are your experiences when hosting Seaside/Smalltalk server side apps?

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

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

发布评论

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

评论(4

此生挚爱伱 2024-08-23 16:58:08

它运行得很好,顺便说一句,您可以在以下位置为您的海滨应用程序获得免费托管:

http://www.seasidehosting.st/< /a>

为了获得更多功能,您当然需要自己的服务器...

这里有一些基准:

http://gemstonesoup.wordpress.com/2007/10/19/scaling-seaside-with-gemstones/

it runs great, btw you can get free hosting for your seaside app at:

http://www.seasidehosting.st/

for more power you'd need your own server of course...

some benchmarks here:

http://gemstonesoup.wordpress.com/2007/10/19/scaling-seaside-with-gemstones/

谈情不如逗狗 2024-08-23 16:58:08

海边书籍有一章介绍部署。它描述了我通常如何部署 Seaside 应用程序。

The Seaside Book has a chapter on deployment. It describes how I typically deploy a Seaside application.

︶ ̄淡然 2024-08-23 16:58:08

我只是使用 ssh 隧道来获取本地计算机上的 X 显示。我使用的是荷兰的 slicehost(美国),因此 ping 时间为 135 毫秒。这不太好,但是还可以。

下一步将是 Lukas Renggli 的远程帧缓冲包,以使用 vnc 查看器。

让我们看看 Miguel Cobá 在 Gemstone 邮件列表上对此有何评论:

如果您的计算机中已经安装了 RFB,请使用它。
如果您的映像中安装了 RFB 并且可以从您的
客户端机器,使用它

但是,它们都未加密。如果你想加密你必须
设置隧道(可能使用 ssh 或 TLS)。

我认为这是多余的,因为你必须使用隧道然后
RFB。所以我在 Linux 中所做的是安装最小的 X 库
然后将 X 会话转发到我的本地计算机。

在服务器中(Debian/Ubuntu 说明):

资质更新

aptitude 安装 xbase-clients

aptitude 安装 xtightvncviewer

从客户端计算机测试它:

ssh -X 远程服务器
squeakvm gemtools.image &

这将启动服务器上的squeakvm进程,但所有图形
将显示在本地计算机上(此特定的 Xserver
场景)。

此外,如果您在某些图像上安装 RFB 并无头启动它们,
您可以使用 xtightvncviewer 通过以下方式连接到图像内部
RFB 服务器。

ssh -X 远程服务器
xtightvncviewer 本地主机:0 &

这将在远程服务器上运行 xtightvncviewer,但同样会
显示在您的本地计算机上。假设您的图像在遥控器中
服务器在第一个显示中运行 RFB。

优点是:
- 您不必在远程服务器上打开 RFB 端口
- 您通过 ssh 加密传输所有内容
- 您仅在远程服务器中按需运行命令。你不
必须始终运行 VNC。
- 您可以将图像中的 RFB 配置为仅接受本地主机
连接而不是来自任何地方。

Martin McClure 建议我看看 NoMachines NX(不那么啰嗦的 X),
但这仍然在我的待办事项清单上。

有关另一组部署说明,请查看 Miguels 博客

I just use a ssh tunnel to get the X display on my local machine. I'm using slicehost (US) from the Netherlands, so I have a ping time of 135 ms. That's not that nice, but ok.

Next step will be Lukas Renggli's remote frame buffer package to use a vnc viewer.

Let's see what Miguel Cobá had to say about it on it on the Gemstone mailing list:

If you have already installed a RFB in your machine then use it.
If you have RFB installed in your image and it is accesible from your
client machine, use it

But, both of them are unencrypted. If you want to encrypted you must
setup a tunnel (maybe with ssh or maybe TLS).

I think that that is redundant because you must use a tunnel and then
the RFB. So what I do, in linux is to install the minimal X libraries
and then forward the X session to my local machine.

In the server (Debian/Ubuntu instructions):

aptitude update

aptitude install xbase-clients

aptitude install xtightvncviewer

Test it from the client machine:

ssh -X remote_server
squeakvm gemtools.image &

This will start the squeakvm process on the server, but all the graphics
will be shown on the local machine (the Xserver for this particular
scenario).

Also, if you install RFB on some of your images and start them headless,
you can use xtightvncviewer to connect to inside the image through the
RFB server.

ssh -X remote_server
xtightvncviewer localhost:0 &

this will run the xtightvncviewer on the remote server but, again, will
show on your local machine. Supposing you have your image in the remote
server running RFB in the first display.

Which is the advantage:
- You don't have to open ports for RFB on the remote server
- You transmit everything encrypted through ssh
- You only run the commands on demand in the remote server. You don't
have to have VNC running always.
- You can configure your RFB in the image to accept only localhost
connections and not from everywhere.

Martin McClure adviced me to take a look at NoMachines NX (less chatty X),
but that's still on my todo list.

For another set of deployment instructions, take a look at Miguels blog

遗心遗梦遗幸福 2024-08-23 16:58:08

最近博客圈一直在讨论这个问题。

Doug Putnam 写下了他在 Slicehost 切片上安装 Seaside(在 Pharo 上)的经验,并进行了< a href="http://www.jarober.com/blog/blogView?showComments=true&printTitle=Getting_this_Server_Running&entry=3439652561" rel="nofollow noreferrer">James Robertson 的文章(使用 VisualWorks , 我想?)。

The blogosphere's been talking about this issue recently.

Doug Putnam wrote up his experiences in installing Seaside (on Pharo) on his Slicehost slice, working off James Robertson's writeup (which uses VisualWorks, I suppose?).

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