我正在通過Rails 4 In Action書。我對第13章:部署,457頁,你把你的代碼最多的Heroku:Rails 4 in Action:無法將代碼推送到heroku,sh:2:語法錯誤:未終止的引用字符串
git push heroku master
它似乎成功獲取所有所需的寶石,因爲它得到這一部分:
remote: Bundle complete! 27 Gemfile dependencies, 90 gems now installed.
remote: Gems in the groups development and test were not installed.
remote: Bundled gems are installed into ./vendor/bundle.
remote: Bundle completed (29.18s)
remote: Cleaning up the bundler cache
但隨後權後,它吹起來,這樣說:
remote: -----> Detecting rake tasks
remote: sh: 2: Syntax error: Unterminated quoted string
remote: sh: 2: Syntax error: Unterminated quoted string
remote: !
remote: ! Could not detect rake tasks
remote: ! ensure you can run `$ bundle exec rake -P` against your app
remote: ! and using the production group of your Gemfile.
remote: ! rake aborted!
remote: ! LoadError: cannot load such file -- net/ssh
我做了什麼,它建議就跑bundle exec rake -P
。這是從輸出:
rake aborted!
LoadError: cannot load such file -- net/ssh
這是通過教程書的工作很難的部分。我不認爲我錯過了任何步驟。我不知道這裏要做什麼。任何提示將非常感謝。
太棒了。這也適用於我 –