尝试在我的本地计算机上预编译资产。我一直收到以下错误。我该如何解决这个问题?
-ruby 2.3.1p112(2016-04-26修订版54768)[x86_64-darwin16] - Rails 5.0.0.1
MERGE (c:customers {customer_id:"12345678"})
MERGE (a:cards {card_hash:"45uIic..."})
MERGE (c)-[r:has_card]->(a)
ON MATCH SET r.num = coalesce(r.num, 0) + 1
set r.last_transaction = "30-NOV-2016 07:58:42"
set a.card_ct = size(()-[:has_card]->(a))
set c.card_count = size((c)-[:has_card]->())
RETURN
CASE
WHEN r.num > 0 THEN false
ELSE true
END as new_relationship
答案 0 :(得分:1)
使用命令
传递RAILS_ENV
RAILS_ENV=production bundle exec rake assets:precompile
这样rails会使用生产环境设置预编译资产