Skip to content

Does meteor-postgres work on new version of meteor? #7

@thinksource

Description

@thinksource

I used meteor 1.2.1 and windows 10:
I fellow the instruction to add the environment variable on simple-todo.js

MP_POSTGRES='postgres://postgres:postgres@localhost/meteorpg';
tasks = new SQL.Collection('tasks',MP_POSTGRES);
username = new SQL.Collection('username',MP_POSTGRES);

But there is still error

G:\git\meteor-postgres>meteor
[[[[[ ~\G\git\meteor-postgres ]]]]]

=> Started proxy.
=> Started MongoDB.
I20151217-11:55:42.971(11)? { [Error: connect ECONNREFUSED]
I20151217-11:55:42.972(11)?   code: 'ECONNREFUSED',
I20151217-11:55:42.973(11)?   errno: 'ECONNREFUSED',
I20151217-11:55:42.973(11)?   syscall: 'connect' }
=> Exited with code: 8
W20151217-11:55:42.973(11)? (STDERR)
W20151217-11:55:42.974(11)? (STDERR) G:\git\meteor-postgres\.meteor\local\build\programs\server\packages\storeness_meteor-postgres.js:571
W20151217-11:55:42.974(11)? (STDERR)     return client.query(input, data, function(error, results) {
W20151217-11:55:42.974(11)? (STDERR)                   ^
W20151217-11:55:42.974(11)? (STDERR) TypeError: Cannot call method 'query' of null
W20151217-11:55:42.974(11)? (STDERR)     at packages/storeness_meteor-postgres/lib/server.coffee:141:12
W20151217-11:55:42.974(11)? (STDERR)     at G:\git\meteor-postgres\.meteor\local\isopacks\storeness_meteor-postgres\npm\node_modules\pg\lib\pool.js:75:25
W20151217-11:55:42.975(11)? (STDERR)     at G:\git\meteor-postgres\.meteor\local\isopacks\storeness_meteor-postgres\npm\node_modules\pg\node_modules\generic-pool\lib\generic-pool.js:274:11
W20151217-11:55:42.975(11)? (STDERR)     at G:\git\meteor-postgres\.meteor\local\isopacks\storeness_meteor-postgres\npm\node_modules\pg\lib\pool.js:27:26
W20151217-11:55:42.975(11)? (STDERR)     at [object Object].<anonymous> (G:\git\meteor-postgres\.meteor\local\isopacks\storeness_meteor-postgres\npm\node_modules\pg\lib\client.js:171:5)
W20151217-11:55:42.975(11)? (STDERR)     at [object Object].emit (events.js:95:17)
W20151217-11:55:42.975(11)? (STDERR)     at Socket.<anonymous> (G:\git\meteor-postgres\.meteor\local\isopacks\storeness_meteor-postgres\npm\node_modules\pg\lib\connection.js:59:10)
W20151217-11:55:42.975(11)? (STDERR)     at Socket.emit (events.js:95:17)
W20151217-11:55:42.975(11)? (STDERR)     at net.js:441:14
W20151217-11:55:42.975(11)? (STDERR)     at process._tickCallback (node.js:448:13)

my .meteor/package is:

# 'meteor add' and 'meteor remove' will edit this file for you,
# but you can also edit it by hand.

insecure
storeness:meteor-postgres
standard-minifiers
meteor-base
mobile-experience
mongo
blaze-html-templates
session
jquery
tracker
logging
reload
random
ejson
spacebars
check

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions