$ 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),如果连接失败,它就会中止。
为什么它会这样做,我该如何解决这个问题?