未找到Rails清单文件(使用Capistrano部署)

问题描述 投票:2回答:1

我正在尝试使用Capistrano部署rails应用程序,但它失败了,因为没有清单文件。

这是我运行cap production deploy时得到的:

01 mkdir -p /home/deploy/list/releases/20171220202012/assets_manif…
✔ 01 influencerlist.io 0.048s
  WARN  Rails assets manifest file not found.
(Backtrace restricted to imported tasks)
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing on host influencerlist.io: Rails assets manifest file not found.


Caused by:
Capistrano::FileNotFound: Rails assets manifest file not found.

Tasks: TOP => deploy:assets:backup_manifest
(See full trace by running task with --trace)
The deploy has failed with an error: Exception while executing on host influencerlist.io: Rails assets manifest file not found.

不知道如何解决这个问题?我试图找到一个解决方案但它们似乎都没有用。

谢谢!

ruby-on-rails-5 capistrano rvm-capistrano
1个回答
6
投票

我解决了,我对解决方案感到惊讶......

我在/ shared / public / assets中创建了两个空文件,名为.manifest.json和.sprockets-manifest.json,它有效。

© www.soinside.com 2019 - 2024. All rights reserved.