【发布时间】:2016-02-21 11:05:11
【问题描述】:
我正在尝试为 Ruby on Rails Web 应用程序设置本地生产环境。我可以使用rails server 命令运行应用程序,它提供了开发环境。
我尝试设置的生产环境纯粹是本地的,我已经按照本教程使用 apache 2 进行设置:https://www.digitalocean.com/community/tutorials/how-to-setup-a-rails-4-app-with-apache-and-passenger-on-centos-6
但是,当我转到我的应用程序页面时,我收到以下错误:
PG::InsufficientPrivilege: ERROR: permission denied for relation schema_migrations : SELECT "schema_migrations".* FROM "schema_migrations"
在我的 database.yml 中,我有这些用于开发和生产的设置:
adapter: postgresql
database: whiteboard
username:
password:
pool: 5
timeout: 5000
无论如何我都不能更改这些设置。
有没有办法解决这个问题? (如果是,请一步一步)
【问题讨论】:
标签: ruby-on-rails postgresql apache2