meteor / postgres-packages

Early preview of PostgreSQL support for Meteor (deprecated, here for historical reasons)
http://meteor-postgres.readthedocs.org/
158 stars 25 forks source link

Update on POSTGRESQL_URL and clearer explanation #44

Open yoonghm opened 8 years ago

yoonghm commented 8 years ago

Meteor uses POSTGRESQL_URL to find postgresql database instead of settings in .knex/knexfile.js which is used during migration process only.

stubailo commented 8 years ago

Did you read the two lines above where the knex file is set to use connection: process.env.POSTGRESQL_URL?

yoonghm commented 8 years ago

Where? My .knex/knexfile.js is

// Update with your config settings.

module.exports = {

  development: {
    client: 'postgresql',
    connection: {
      database: 'todo',
      user:     process.env['USER']
    },
    pool: {
      min: 2,
      max: 10
    },
    migrations: {
      tableName: 'knex_migrations'
    }
  }
};

I created another example and use database todo instead of todos.

CLAassistant commented 4 years ago

CLA assistant check
All committers have signed the CLA.