在app文件夹外添加rails引擎并推送到heroku

时间:2016-01-05 18:40:24

标签: ruby-on-rails git heroku

我有一个名为recipe的rails应用程序。我有一个带有这个文件夹的rails引擎'blogo'。食谱和博客都在'foodsy'文件夹中。在我的gemfile中,blogo加载了

gem 'blogo' ,path : '../blogo'

但是当我将应用程序推送到heroku时,我收到错误消息

remote:        Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
remote:        The path `/tmp/blogo` does not exist.
remote:        Bundler Output: The path `/tmp/blogo` does not exist.
remote:  !
remote:  !     Failed to install gems via Bundler.
remote:  !
remote: 
remote:  !     Push rejected, failed to compile Ruby app
remote: 
remote: Verifying deploy....
remote: 
remote: !   Push rejected to secure-gorge-6009.

我认为这是因为在recipe文件夹中初始化的git不包含blogo。如果我从foodsy文件夹中推送它,我会收到以下错误

remote:  !     Push rejected, failed to detect set buildpack heroku/ruby

因为foodsy文件夹中没有ruby文件,所以会出现此错误。如何在配方git中包含blogo文件夹?

0 个答案:

没有答案