我有一個登臺服務器。我想在那裏調查一些問題。但我忘了將byebug
添加到Gemfile
。我肯定可以在本地添加它,運行bundle
,提交到存儲庫,部署。但是有沒有更簡單的方法?如何在生產環境中使用捆綁器安裝其他gem?
當我嘗試用遙控改變Gemfile
和運行bundle
我得到:
You are trying to install in deployment mode after changing
your Gemfile. Run `bundle install` elsewhere and add the
updated Gemfile.lock to version control.
If this is a development machine, remove the /home/gccs/website-backend/releases/20161018143057/Gemfile freeze
by running `bundle install --no-deployment`.
You have added to the Gemfile:
* byebug
寶石都安裝了capistrano
,基本上,像這樣:
bundle install --path /home/user/app/shared/bundle --without development test --deployment --quiet
我增加了更多信息的問題。我可以說,'bundler'與'Gemfile.local'產生相同的錯誤信息。 –
你需要編輯'.bundle/config'並刪除這一行:'BUNDLE_FROZEN:'1''。這開始變得比提交,推送和部署更復雜;) – mdesantis
'您需要編輯.bundle/config並刪除這一行:BUNDLE_FROZEN:'1''或者只是將其更改爲'0'。無論如何,偉大的,它的工作,謝謝。 '這已經開始變得比提交,推送和部署更復雜了,嗯,根本不需要,你只需要「解凍」改變'Gemfile',更改'Gemfile',並運行'bundle'。不需要'Gemfile.local'。請考慮更新您的答案。 –