Tag: docker

在rails上的ruby中将sqlite更改为PostgreSQL

我正在使用win 7与docker和docker我在轨道上使用ruby,我做了一个适用于sqlite3的应用程序但是当我尝试上传到Heroku时,Heroku给了我一个错误,它不支持sqlite3所以我有将我的app数据库更改为PostgreSQL并进行了以下更改:在我的Gemfile中我评论了gem sqlite3: # Use sqlite3 as the database for Active Record #gem ‘sqlite3’ #posgresql gem ‘pg’ 第二个我做了“捆绑安装”,然后是docker-compuse构建 然后在我的database.yml中: 之前: default: &default adapter: sqlite3 pool: timeout: 5000 development: <<: *default database: db/development.sqlite3 # Warning: The database defined as "test" will be erased and # re-generated from your development database when you run "rake". # Do […]