1. 当前,对rails 3.1支持非常不好,要特别调试scss和asset pipeline
2. 自己生成的git地址不好看,最好在本地改
heroku rename newname
帐号下改完要
$ git remote rm heroku $ git remote add heroku [email protected]:newname.git
3. 数据库
以前应该支持sqlite3,现在要配置pg
如果,不想本地用pg
group :development, :text do gem 'sqlite3' end gem 'pg', :group => :production
4. 在gem里有debug就很麻烦、
5.
引用
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
heroku keys:add ~/.ssh/id_rsa.pub
先这么多,有了再加
source 'http://rubygems.org' gem 'rails', '~> 3.1.0' gem 'rails-i18n', '~> 0.1.3' gem 'pg', '~> 0.11.0' gem 'rake', '~> 0.8.7' gem 'thin', '~> 1.2.11' gem 'heroku', '~> 2.4.0' gem 'squeel', '~> 0.8.6' gem 'devise', '~> 1.4.2' gem 'slim-rails', '~> 0.2.0' gem 'simple_form', '~> 1.4.2' gem 'will_paginate', '~> 3.0' gem 'sunspot_rails', '~> 1.2.1' gem 'jquery-rails', '~> 1.0.12' gem 'modernizr-rails', '~> 2.0.6' gem 'rails_admin', git: 'https://github.com/sferik/rails_admin.git' gem 'sass-rails', '~> 3.1.0' gem 'coffee-rails', '~> 3.1.0' gem 'uglifier', '~> 1.0.0' gem 'newrelic_rpm'