0

我有三个问题

1.腻子问题

我有一个正在运行的 Rails 应用程序,一旦我通过 putty(脚本/服务器)启动应用程序,它就会启动,但是一旦我关闭系统或说 putty,服务器也会停止并且该应用程序对其他人不可用。基本上我是新人到 ruby​​ on rails ,我无法找出如何解决这个问题的解决方案。

2.速度问题

当我部署了我的应用程序时,应用程序的渲染时间似乎非常高。等待几秒钟后(通常> 30秒)加载页面。我已经为应用程序安装了 Apache 服务器。可能是 Apache 是瓶颈? 我应该为我的应用程序安装一些其他服务器吗?

3.同步问题

我在本地主机上处理我的应用程序。每次我进行更改时,我都必须单独将更改上传到各自的文件夹,这非常忙碌。你们能推荐任何有助于快速同步更改的好的软件甚至方法吗?

4

1 回答 1

1
  1. Your program is a child process of the ssh session - if you close the session you also close all children. To prevent this, use nohup (google it for tons of examples) or screen or similar programs that allow you to detatch a process from the current session.

  2. If your server isn't extremely slow, apache shouldn't use this much time. Can't say much about it whithout seeing your code and server configuration, but I think this is more likely to be a coding, configuration or maybe database problem than an apache problem. But you could just try it with another webserver and see if it is significantly faster - if yes, your apache configuration is most likely at fault.

  3. Use a versioning system! Programs like git (which I would recommend) or svn can automate the synchronization process for you, and are useful for a ton of other stuff too.

于 2012-09-17T11:22:30.757 回答