2

当我尝试在 部署我的 rails 应用程序时cloud66,我收到此错误:

rake aborted!
ArgumentError: same file: /var/deploy/website/web_head/releases/20150315170454/public/assets/tinymce/custom_content.css and /var/deploy/website/web_head/releases/20150315170454/public/assets/tinymce/custom_content.css


Tasks: TOP => assets:precompile

有人可以解释为什么我会收到这个错误吗?如何解决?

4

3 回答 3

0

Never had this problem but I can see two possible causes.

First : the file is effectively required twice either directly or by different tree directives.

Second : you have a partial _custom_content and a file custom_content. Sass does not accept this configuration.

I would do a rake assets:precompile on my local machine to try to understand.

于 2015-03-22T08:53:06.180 回答
0

您如何运行资产预编译?默认情况下,您的资产将转到服务器上的共享/资产 - 您是否指定了自定义位置?位置由 定义config.assets.prefix

于 2015-03-16T17:13:30.963 回答
0

我遇到了同样的问题,以下步骤解决了它:

gem 'tinymce-rails-imageupload', github: 'PerfectlyNormal/tinymce-rails-imageupload'

然后运行,

bundle install

现在检查以下命令:

rake assets:precompile 

如果上面的命令运行成功且没有错误,那么它将在 public/assets 路径中创建一个 assets 文件夹。从“公共/资产”路径中删除资产文件夹。

然后 git commit,push 然后推送到 heroku。如果您遇到相同的错误,请添加以下 gem 并从顶部重新启动。

gem "non-stupid-digest-assets"

希望它有帮助。

于 2017-02-04T21:46:20.623 回答