Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
草头诗人
@inocr
会员
第 11352 位会员 / 2014-02-06

[email protected]
2 篇帖子 / 5 条回帖
0 关注者
0 正在关注
4 收藏
未设置 GitHub 信息。
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 明明已经执行了 bundle install ,但是推 heroku 的时候还是报错 sqlite1.3.8 error at 2014年02月22日

    #10 楼 @zj0713001 的确是这样!不过这个不影响吧?

          Your bundle is complete!
           Gems in the groups development and test were not installed.
           It was installed into ./vendor/bundle
           Bundle completed (18.44s)
           Cleaning up the bundler cache.
    -----> Writing config/database.yml to read from DATABASE_URL
           Detected manifest file, assuming assets were compiled locally
    -----> Discovering process types
           Procfile declares types -> (none)
           Default types for Ruby  -> console, rake, web, worker
    
    -----> Compressing... done, 21.1MB
    -----> Launching... done, v6
           http://rocky-fortress-5190.herokuapp.com deployed to Heroku
    
    To [email protected]:rocky-fortress-5190.git
     * [new branch]      master -> master
    
    

    今天在另一台电脑重新搭建了配置了下,竟然直接成功了,不需要改 database.yml

    development:
      adapter: sqlite3
      database: db/development.sqlite3
      pool: 5
      timeout: 5000
    
    # Warning: The database defined as "test" will be erased and
    # re-generated from your development database when you run "rake".
    # Do not set this db to the same as development or production.
    test:
      adapter: sqlite3
      database: db/test.sqlite3
      pool: 5
      timeout: 5000
    
    production:
      adapter: sqlite3
      database: db/production.sqlite3
      pool: 5
      timeout: 5000
    
  • 明明已经执行了 bundle install ,但是推 heroku 的时候还是报错 sqlite1.3.8 error at 2014年02月20日

    #8 楼 @alsotang @zj0713001 我去试试,预感还是不行,就如@alsotang说的,安装 development 里面的东西了。

  • 明明已经执行了 bundle install ,但是推 heroku 的时候还是报错 sqlite1.3.8 error at 2014年02月20日

    #2 楼 @chunlea 我是已经在 gemfile 里添加 pg 到 production 的

  • 明明已经执行了 bundle install ,但是推 heroku 的时候还是报错 sqlite1.3.8 error at 2014年02月20日

    真不好意思!这几天忙,现在才回复你们。

  • 明明已经执行了 bundle install ,但是推 heroku 的时候还是报错 sqlite1.3.8 error at 2014年02月20日

    #1 楼 @zj0713001 我在学习一本教材《Ruby on Rails Tutorial》里面,提到要这么做,下面是详细的 gemfile

    source 'https://rubygems.org'
    ruby '2.0.0'
    #ruby-gemset=railstutorial_rails_4_0
    
    gem 'rails', '4.0.2'
    
    group :development do
      gem 'sqlite3', '1.3.8'
    end
    
    gem 'sass-rails', '4.0.1'
    gem 'uglifier', '2.1.1'
    gem 'coffee-rails', '4.0.1'
    gem 'jquery-rails', '3.0.4'
    gem 'turbolinks', '1.1.1'
    gem 'jbuilder', '1.0.2'
    
    group :doc do
      gem 'sdoc', '0.3.20', require: false
    end
    
    group :production do
      gem 'pg', '0.15.1'
      gem 'rails_12factor', '0.0.2'
    end
    
关于 / RubyConf / Ruby 镜像 / RubyGems 镜像 / 活跃会员 / 组织 / API / 贡献者
由众多爱好者共同维护的 Ruby 中文社区,本站使用 Homeland 构建,并采用 Docker 部署。
服务器由 赞助 CDN 由 赞助
iOS 客户端 / Android 客户端 简体中文 / English