有问题。在Windows 7上运行PostgreSQL,Rails 3.2.3,Ruby 1.9.2p180和1.9.3(通过Pik)。当我尝试做
heroku db:push
在ruby 1.9.2上,我收到错误
Loaded Taps v0.3.23
Auto-detected local database: postgres://postgres:lalala@localhost/prelaunch_d
evelopment
# Connect on a TCP socket. Omitted by default since the client uses a?encoding=u
tf8
.....
Failed to connect to database:
URI::InvalidURIError -> bad URI(is not URI?): postgres://postgres:lalala@loc
alhost/prelaunch_development
# Connect on a TCP socket. Omitted by default since the client uses a?encoding=u
tf8
我可能会做错什么?
答案 0 :(得分:1)
答案 1 :(得分:0)
如果您在本地计算机上工作,请尝试这样的操作。
login: &login
adapter: postgresql
host: localhost
username: postgres
password: yourpassword!
pool: 5
encoding: unicode
development:
database: dbname
<<: *login
test:
database: dbname
<<: *login
production:
database: dbname
<<: *login
请注意,添加了host:localhost,因为默认文件没有。