To https://git.heroku.com/afternoon-mountain-83271.git ! [rejected] master -> master (non...

7-2 上传专案到 Heroku

碰到的问题:加'pg'这个gem 然后保存

在终端机输入运行bundle install

提示:

qianchendeiMac:first_app qianchen$ bundle install

[!] There was an error parsing `Gemfile`: syntax error, unexpected end-of-input, expecting end. Bundler cannot continue.

 #  from /Users/qianchen/first_app/Gemfile:56

 #  -------------------------------------------

 #  # Windows does not include zoneinfo files, so bundle the tzinfo-data gem

 >  gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

 #  -------------------------------------------


解决方法:发现加'pg'这个gem的时候没有认真比对老师写的代码,漏掉了后面的end.

加上后解决

你可能感兴趣的:(To https://git.heroku.com/afternoon-mountain-83271.git ! [rejected] master -> master (non...)