添加https://gems.tanmer.com的gem后,如何bundle

source 'https://gems.tanmer.com' do gem 'tmlib-extensions', '0.2.0' gem 'tmlib-acts_as_status', '0.1.0' end
如上所示,当我们的Gemfile添加了tanmer自研的gem以后,需要做以下几个操作,方可bundle运行成功。
# 1.在命令行 $> vi ~/.profile # 2. 打开.profile文件以后,在里面添加一行密钥: export BUNDLE_GEMS__TANMER__COM="<密钥字符串,见微信消息>" # 3. :wq 保存并关闭.profile文件,运行 $> source ~/.profile # 4. 然后正常在rails 下运行bundle $> bundle
2022-05-19
0