-
Notifications
You must be signed in to change notification settings - Fork 37
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
connecting to a nonlocal database #27
Comments
Are you getting any errors in the terminal where you're running your server? Your database url isn't valid. That might not be the entire problem, but that URL definitely won't work. What you want is this:
|
There are no errors in the terminal. Yes, I've tried that option as well but I receive the same error |
Wrong port ? var con = {
user : "<user>",
database : "<db>",
password : "<user password>",
port : 5433,
host : "amazonaws.com"
};
var app = new Tilesplash(con); See also |
Thanks, I've tried this as well but still the same error (the port is correct). I've made sure the db is publicly available and am able to connect via PgAdmin. Is there a way to get more information than |
Well, tilesplash doesn't actually create a page for
|
Right, I've added that in the html file with |
Could an unescaped space in your path be the culprit ?
Eg. Rename your project path to 'mvt-example-3' instead of 'mvt-example 3'.
… Le 9 févr. 2017 à 06:08, iskandari ***@***.***> a écrit :
I've added that in the html file with tiles: ['http://localhost:3000/parcel11/{z}/{x}/{y}.mvt'] All of the code is here. Any idea as to where the snag could be?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Hmm. When you open up http://localhost:3000/parcel11/0/0/0.topojson what do you see? |
It just says
I guess there is an issue with connecting to the database, but don't understand why |
I get the same error:
Could this be part of the problem? Node runs fine after |
Ok. What's happening is that tilesplash just doesn't serve anything at If that contains no shapes, that means your sql query isn't returning any. Possible reasons are:
|
In the
server.js
file I am attempting to connect remotely to a PostgreSQL database instance on Amazon Web Services. On my local computer, I am able to connect to it through PgAdmin.Using tilesplash, however, it keeps bouncing back with
Cannot GET /
This is probably because a password is required. Where would one pass the password argument when creating anew Tilesplash()
for example?var app = new Tilesplash('postgres://[email protected] password="mypassword" /mydb');
The text was updated successfully, but these errors were encountered: