这是我原来的错误: $ psql psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"? 并在Rails中… PG::ConnectionBad: could not connect to server: Connection refused Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432? 我search了一下,发现了大约十几个答案 – 这个问题的关键是,当我closures我的电脑/usr/local/var/postgres/postmaster.pid不会被删除 – […]
我有安装了Ubuntu的VPS服务器。 总内存16GB,但我的服务器只使用3-4GB …问题是为什么? 我设置innoDB使用12GB,但没有任何改变。 服务器负载1.5 如何增加内存使用量? 当我有专用的服务器ubuntu时,总是使用所有的内存caching的东西,加快进程。
我正在将RoR应用程序部署到Amazon Elastic Beanstalk。 静态文件由nginx提供。 应用程序根目录是: /var/app/current ,它包含当前的Rails应用程序。 public目录树: => /var/app/current/public drwxr-xr-x 6 webapp webapp 4096 Aug 31 12:53 . drwxr-xr-x 13 webapp webapp 4096 Aug 31 12:54 .. -rw-r–r– 1 webapp webapp 1722 Aug 31 12:52 404.html -rw-r–r– 1 webapp webapp 1705 Aug 31 12:52 422.html -rw-r–r– 1 webapp webapp 1635 Aug 31 12:52 500.html […]
我有一个Rails应用程序运行在Windows Server 2003安装上的Windows服务。 我想自动从我的Ubuntu开发服务器部署新版本的应用程序。 为此,Cygwin安装在Windows服务器上。 我可以通过ssh和net stop servicename进行连接,但是net start servicename不能net start servicename服务。 我最初的想法可能是在mongrel :: service中包含windows特定的path,并且在cygwin环境下它会窒息? 任何帮助,将不胜感激!
我有monitconfiguration为监视我的应用程序的生产版本的作业: # in /etc/monitrc: include /etc/monit/delayed_job.my_app.production.monitrc # in /etc/monit/delayed_job.my_app.production.monitrc check process delayed_job with pidfile /var/www/apps/myapp_production/shared/pids/delayed_job.pid start program = "/var/www/apps/myapp_production/current/script/delayed_job -e production start" stop program = "/var/www/apps/myapp_production/current/script/delayed_job -e production stop" 我也想在同一个盒子上监视暂存版本,但我不能完全弄清楚是否允许我想要做什么。 我的第一个猜测就是做一个gsub/production/staging : # in /etc/monitrc: include /etc/monit/delayed_job.my_app.staging.monitrc # in /etc/monit/delayed_job.my_app.staging.monitrc: check process delayed_job with pidfile /var/www/apps/myapp_staging/shared/pids/delayed_job.pid start program = "/var/www/apps/myapp_staging/current/script/delayed_job -e staging start" stop program […]
我们正在将一个博客集成到我们的Rails应用程序中。 我虽然认为我们应该select一个子域,而不是Rails和Wordpress共存于同一个域。 他们不允许这样做,因为它对SEO不好。 那是对的吗?
我刚刚得到了一个新的.CO域名,我很好奇如何在没有www的情况下访问它。 我明白,这两个不一定是一回事,但是如何去保护/安排呢? 我已经尝试了谷歌search这个,但很难成功谷歌这个时,你的主要关键字是“www”和… 不 www。 =)
我想知道是否Ruby和IIS 7可以共同生活在我的networking服务器使用相同的80端口。
我正在研究Rails应用程序的高可用性数据库的主题。 我正在寻找基于开源的解决scheme。 目前我们的系统运行在一个应用程序主机+一个数据库主机,这意味着这两个任何一个下降我有麻烦。 我更喜欢这个configuration加倍,如果可能的话,在不同的网站上运行(但这不是要求)。 第一个想法是主动 – 主动复制,但似乎Postgresql在这方面很薄弱,MySQL也不稳固( http://www.mysqlperformanceblog.com/2007/03/15/mysql-myisam-active-active-clustering因为麻烦/ )。 我正在考虑一个VoltDB,这看起来像一个性感的话题,可以像Rails一样使用。 日志共享似乎是一个不错的主意,但我对这个概念很新,我想知道这种解决scheme的成本,以及如何。 MySQL将会使用它。 而且它排除了我猜想在两个不同的站点运行应用程序的任何方式。 我真的可以在这里使用一些技巧,所以随时提出问题,并提出解决scheme。 我将编辑这个post来添加任何必要的信息。
我正在使用rails 3应用程序运行ubuntu,rvm,passenger。 我必须在我的主机文件中使用SetEnv来设置GEM_HOME和GEM_PATH,就像在Apache中完成一样,但是我不确定这是如何在nginx中完成的。 这可以以某种方式完成吗?