Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
thinksource opened this issue Dec 17, 2015 · 0 comments
Open

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

thinksource opened this issue Dec 17, 2015 · 0 comments

Comments

@thinksource
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant