【问题标题】:Connect PGAdmin3 to Heroku PostgreSQL dedicated database将 PGAdmin3 连接到 Heroku PostgreSQL 专用数据库
【发布时间】:2012-08-18 08:29:07
【问题描述】:

请为我将数据与方框匹配。以下是在我闪亮的新专用数据库上运行 heroku config 的(经过修正的)结果:

=== Config Vars for myapp
DATABASE_URL:                postgres://thinga:thingb@ec2-23-21-119-36.compute-1.amazonaws.com:5432/thingc
GEM_PATH:                    vendor/bundle/ruby/1.9.1
HEROKU_POSTGRESQL_OLIVE_URL: postgres://thinga:thingb@ec2-23-21-119-36.compute-1.amazonaws.com:5432/thingc
HIREFIREAPP_TOKEN:           7965994a31ace96fc5f390longtoken
LANG:                        en_US.UTF-8
MEMCACHE_PASSWORD:           password
MEMCACHE_SERVERS:            mc9.ec2.northscale.net
MEMCACHE_USERNAME:           myapp%40heroku.com
PATH:                        vendor/bundle/ruby/1.9.1/bin:/usr/local/bin:/usr/bin:/bin:bin
PGBACKUPS_URL:               https://thing@pgbackups.heroku.com/client
RACK_ENV:                    production
RAILS_ENV:                   production

在我的本地 PGAdmin3 上配置新服务器的字段是:

Name
Host
Port
Service
Maintenance DB
Username
Password
Group

什么去哪里?

【问题讨论】:

    标签: ruby-on-rails postgresql heroku pgadmin


    【解决方案1】:

    好的:一切都来自数据库 URL。

    DATABASE_URL:                postgres://thinga:thingb@ec2-23-21-119-36.compute-1.amazonaws.com:5432/thingc
    
    
    Name: thingc
    Host: ec2-23-21-119-36.compute-1.amazonaws.com
    Port: 5432
    Service
    Maintenance DB: thingc
    Username: thinga
    Password: thingb
    Group
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-10-07
      • 2014-03-04
      • 1970-01-01
      • 2015-08-30
      • 2014-03-30
      • 2013-04-19
      • 2013-04-05
      • 2020-11-03
      相关资源
      最近更新 更多