【发布时间】:2011-12-21 08:14:44
【问题描述】:
$ rake assets:precompile
rake aborted!
could not connect to server: Network is unreachable
Is the server running on host "192.168.163.70" and accepting
TCP/IP connections on port 5432?
(See full trace by running task with --trace)
rake aborted!
Command failed with status (1): [/usr/local/Cellar/ruby/1.9.3-p0/bin/ruby /...]
所以我正在尝试在我的开发箱上预编译资产。出于某种原因,它会尝试连接到生产数据库 (192.168.163.70),如果连接失败,则会中止。
为什么会这样?我该如何解决这个问题?
【问题讨论】:
标签: ruby-on-rails-3.1 asset-pipeline precompile