Capistrano error: 'Could not find form_data-0.1.0 in any of the sources' while deploying

Capistrano error: 'Could not find form_data-0.1.0 in any of the sources' while deploying

我在开发服务器上有一个 rails 应用程序,我在尝试进行一些更改时删除了共享文件夹。当我尝试重新部署应用程序时,我在 Capistrano 上收到以下错误。

servers: ["xx.xxx.xxx.223"] [xx.xxx.xxx.223] executing command
** [out :: xx.xxx.xxx.223] Could not find form_data-0.1.0 in any of the sources

command finished in 41821ms
*** [deploy:update_code] rolling back
* executing "rm -rf /var/www/apps/SITENAME/releases/20150507165055; true"

我已经尝试了 bundle install --deployment,但我仍然遇到同样的错误

Could not find form_data-0.1.0 in any of the sources

如有任何帮助,我们将不胜感激。

这可能是由过时的 Gemfile.lock 文件引起的。删除 Gemfile.lock、运行 bundle install 并尝试重新启动您的应用程序。