English 中文(简体)
电话:配置问题
原标题:Ruby-on-rails + Postgres: configuration issue

I'm 安装在Windows 7 Mouy 1.8.6、铁路2.3.8、一些基本地段(也用地标)和从杰普林处安装的IDE-Brmine之后,留下了一些麻烦。

因此,我与Rubyamine(在数据库中为Drumine PostgresSQL配置)建立了一个简单的项目,然后在当地进行:3000,但似乎并不承认:

When I first click on the main page of Ruby on Rails at "About your application’s environment" it returns an Error: "We re sorry, but something went wrong." and even when I create a simple controller with a view and opens the right URL it tells the same problem.

我不知道这个问题是否涉及数据库,还是涉及类似情况,但我也想知道如何将数据库整理成数据库。

违约:

  adapter: postgresql
  encoding: unicode
  database: (name of the project)_(type: test, production or development)
  pool: 5
  username: (name of the project)
  password: (no password)

我做了些什么:

  adapter: postgresql
  encoding: utf-8
  database: (name of database)_(type: test, production or development)
  pool: 5
  username: ruby
  password: (no password)
  host: localhost
  port: 3000

是否正确?

最佳回答

假设你的项目被称为“oo”,你创立了正确的邮政数据库,邮政局正在当地东道市的停泊港听取意见。

 development:
    adapter: postgresql
    encoding: utf-8
    database: foo_development 
    pool: 5
    user: ruby

如前所述,3 000港是铁路的听众,因此将产生问题。 你们还需要确保“白ba”会让与数据库连接。

问题回答

我对视窗上的铁路运行不了解很多,但看着你的数据库。 以上黄色文档,请打port:3000。 这为铁路申请的违约港口投入运行。 你们需要把PogreSQL的港口投入运行,港口通常为5432个。





相关问题
摘录数据

我如何将Excel板的数据输入我的Django应用? I m将PosgreSQL数据库作为数据库。

Postgres dump of only parts of tables for a dev snapshot

On production our database is a few hundred gigabytes in size. For development and testing, we need to create snapshots of this database that are functionally equivalent, but which are only 10 or 20 ...

How to join attributes in sql select statement?

I want to join few attributes in select statement as one for example select id, (name + + surname + + age) as info from users this doesn t work, how to do it? I m using postgreSQL.

What text encoding to use?

I need to setup my PostgreSQL DB s text encoding to handle non-American English characters that you d find showing up in languages such as German, Spanish, and French. What character encoding should ...

SQL LIKE condition to check for integer?

I am using a set of SQL LIKE conditions to go through the alphabet and list all items beginning with the appropriate letter, e.g. to get all books where the title starts with the letter "A": SELECT * ...

热门标签