Ruby 使用Bundler和Heroku的gems的基本工作流程是什么?
我在app目录的根目录中有一个gem文件,我在其中使用versionnumber指定gem,如下所示:Ruby 使用Bundler和Heroku的gems的基本工作流程是什么?,ruby,git,heroku,gem,bundler,Ruby,Git,Heroku,Gem,Bundler,我在app目录的根目录中有一个gem文件,我在其中使用versionnumber指定gem,如下所示: gem 'rails', '3.2.14' group :production do gem 'pg', '0.12.2' end 或在环境块(如适用)中,如下所示: gem 'rails', '3.2.14' group :production do gem 'pg', '0.12.2' end 当我添加一个新的gem时,我运行命令 bundle install 当我想更新
gem 'rails', '3.2.14'
group :production do
gem 'pg', '0.12.2'
end
或在环境块(如适用)中,如下所示:
gem 'rails', '3.2.14'
group :production do
gem 'pg', '0.12.2'
end
当我添加一个新的gem时,我运行命令
bundle install
当我想更新所有gem时,我会运行comand
bundle update
当我将应用程序部署到Heroku时,我会运行
git push heroku master
我的工作流程中是否有什么遗漏,或者可以改进的地方?因为现在我在Heroku上得到了一个错误(在更新了所有gems之后),声明如下
can't activate bcrypt-ruby (~> 3.0.0, runtime), already activated bcrypt-ruby-3.1.2. Make sure all dependencies are added to Gemfile. (Gem::LoadError)
我也不知道我做错了什么。应用程序在本地运行得非常好。如果能澄清我的逻辑错误,我将不胜感激
更新
Gemfile.lock文件:
GEM
remote: https://rubygems.org/
specs:
actionmailer (3.2.14)
actionpack (= 3.2.14)
mail (~> 2.5.4)
actionpack (3.2.14)
activemodel (= 3.2.14)
activesupport (= 3.2.14)
builder (~> 3.0.0)
erubis (~> 2.7.0)
journey (~> 1.0.4)
rack (~> 1.4.5)
rack-cache (~> 1.2)
rack-test (~> 0.6.1)
sprockets (~> 2.2.1)
activemodel (3.2.14)
activesupport (= 3.2.14)
builder (~> 3.0.0)
activerecord (3.2.14)
activemodel (= 3.2.14)
activesupport (= 3.2.14)
arel (~> 3.0.2)
tzinfo (~> 0.3.29)
activeresource (3.2.14)
activemodel (= 3.2.14)
activesupport (= 3.2.14)
activesupport (3.2.14)
i18n (~> 0.6, >= 0.6.4)
multi_json (~> 1.0)
arel (3.0.2)
bcrypt-ruby (3.1.2)
builder (3.0.4)
daemons (1.1.9)
erubis (2.7.0)
eventmachine (1.0.3)
execjs (2.0.1)
hike (1.2.3)
hirb (0.7.1)
httpclient (2.3.4.1)
i18n (0.6.5)
impressionist (1.4.7)
httpclient (~> 2.2)
nokogiri (~> 1.6.0)
journey (1.0.4)
jquery-rails (2.2.1)
railties (>= 3.0, < 5.0)
thor (>= 0.14, < 2.0)
jquery-ui-rails (4.0.4)
jquery-rails
railties (>= 3.1.0)
json (1.8.0)
mail (2.5.4)
mime-types (~> 1.16)
treetop (~> 1.4.8)
mime-types (1.25)
mini_portile (0.5.1)
multi_json (1.7.9)
nokogiri (1.6.0)
mini_portile (~> 0.5.0)
pg (0.12.2)
polyglot (0.3.3)
quiet_assets (1.0.2)
railties (>= 3.1, < 5.0)
rack (1.4.5)
rack-cache (1.2)
rack (>= 0.4)
rack-ssl (1.3.3)
rack
rack-test (0.6.2)
rack (>= 1.0)
rails (3.2.14)
actionmailer (= 3.2.14)
actionpack (= 3.2.14)
activerecord (= 3.2.14)
activeresource (= 3.2.14)
activesupport (= 3.2.14)
bundler (~> 1.0)
railties (= 3.2.14)
railties (3.2.14)
actionpack (= 3.2.14)
activesupport (= 3.2.14)
rack-ssl (~> 1.3.2)
rake (>= 0.8.7)
rdoc (~> 3.4)
thor (>= 0.14.6, < 2.0)
rake (10.1.0)
rdoc (3.12.2)
json (~> 1.4)
sass (3.2.10)
sass-rails (3.2.6)
railties (~> 3.2.0)
sass (>= 3.1.10)
tilt (~> 1.3)
sprockets (2.2.2)
hike (~> 1.2)
multi_json (~> 1.0)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sqlite3 (1.3.7)
thin (1.5.1)
daemons (>= 1.0.9)
eventmachine (>= 0.12.6)
rack (>= 1.0.0)
thor (0.18.1)
tilt (1.4.1)
treetop (1.4.15)
polyglot
polyglot (>= 0.3.1)
tzinfo (0.3.37)
uglifier (2.2.1)
execjs (>= 0.3.0)
multi_json (~> 1.0, >= 1.0.2)
webrick (1.3.1)
PLATFORMS
ruby
DEPENDENCIES
bcrypt-ruby (= 3.1.2)
hirb
impressionist
jquery-rails (= 2.2.1)
jquery-ui-rails
pg (= 0.12.2)
quiet_assets
rails (= 3.2.14)
sass-rails (~> 3.2.6)
sqlite3 (= 1.3.7)
thin
uglifier (>= 1.3.0)
webrick (~> 1.3.1)
GEM
远程:https://rubygems.org/
规格:
actionmailer(3.2.14)
actionpack(=3.2.14)
邮件(~>2.5.4)
actionpack(3.2.14)
活动模型(=3.2.14)
主动支持(=3.2.14)
生成器(~>3.0.0)
erubis(~>2.7.0)
行程(~>1.0.4)
机架(~>1.4.5)
机架缓存(~>1.2)
机架测试(~>0.6.1)
链轮(~>2.2.1)
activemodel(3.2.14)
主动支持(=3.2.14)
生成器(~>3.0.0)
activerecord(3.2.14)
活动模型(=3.2.14)
主动支持(=3.2.14)
arel(~>3.0.2)
tzinfo(~>0.3.29)
动态资源(3.2.14)
活动模型(=3.2.14)
主动支持(=3.2.14)
activesupport(3.2.14)
i18n(~>0.6,>=0.6.4)
多重json(~>1.0)
阿雷尔(3.0.2)
bcrypt红宝石(3.1.2)
建筑商(3.0.4)
守护进程(1.1.9)
erubis(2.7.0)
eventmachine(1.0.3)
execjs(2.0.1)
徒步旅行(1.2.3)
hirb(0.7.1)
httpclient(2.3.4.1)
i18n(0.6.5)
印象派(1.4.7)
httpclient(~>2.2)
nokogiri(~>1.6.0)
旅程(1.0.4)
jquery rails(2.2.1)
钢轨(>=3.0,<5.0)
雷神(>=0.14,<2.0)
jQueryUIRails(4.0.4)
jquery rails
钢轨(>=3.1.0)
json(1.8.0)
邮件(2.5.4)
mime类型(~>1.16)
树梢(~>1.4.8)
mime类型(1.25)
迷你端口(0.5.1)
多线程json(1.7.9)
nokogiri(1.6.0)
迷你端口(~>0.5.0)
pg(0.12.2)
polyglot(0.3.3)
安静资产(1.0.2)
钢轨(>=3.1,<5.0)
机架(1.4.5)
机架缓存(1.2)
机架(>=0.4)
机架ssl(1.3.3)
支架
机架测试(0.6.2)
机架(>=1.0)
轨道(3.2.14)
actionmailer(=3.2.14)
actionpack(=3.2.14)
活动记录(=3.2.14)
活动资源(=3.2.14)
主动支持(=3.2.14)
捆扎机(~>1.0)
栏杆(=3.2.14)
栏杆(3.2.14)
actionpack(=3.2.14)
主动支持(=3.2.14)
机架ssl(~>1.3.2)
耙(大于等于0.8.7)
rdoc(~>3.4)
雷神(>=0.14.6,<2.0)
耙(10.1.0)
rdoc(3.12.2)
json(~>1.4)
sass(3.2.10)
sass轨道(3.2.6)
钢轨(~>3.2.0)
sass(>=3.1.10)
倾斜(~>1.3)
链轮(2.2.2)
徒步旅行(~>1.2)
多重json(~>1.0)
机架(~>1.0)
倾斜(~>1.1,!=1.3.0)
sqlite3(1.3.7)
薄型(1.5.1)
守护进程(>=1.0.9)
eventmachine(>=0.12.6)
机架(>=1.0.0)
雷神(0.18.1)
倾斜(1.4.1)
树梢(1.4.15)
多语言文字
多克隆(>=0.3.1)
tzinfo(0.3.37)
丑八怪(2.2.1)
execjs(>=0.3.0)
多重json(~>1.0,>=1.0.2)
韦布里克(1.3.1)
平台
红宝石
依赖关系
bcrypt红宝石(=3.1.2)
hirb
印象派
jquery rails(=2.2.1)
jQueryUIRails
pg(=0.12.2)
静默资产
钢轨(=3.2.14)
sass轨道(~>3.2.6)
sqlite3(=1.3.7)
薄的
uglifier(>=1.3.0)
webrick(~>1.3.1)
你能在这里发布你的Gemfile.lock
吗?我觉得工作流程不错。还有一些其他问题与您的问题类似。