-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Unexpected Syntax Error Starting NPM Start #2836
Comments
Hi ... would you please provide your index.js file in gist or something. It's sounds like a syntax error :) |
`// Example express application adding the parse-server module to expose Parse var express = require('express'); var databaseUri = process.env.DATABASE_URI || process.env.MONGODB_URI; if (!databaseUri) { var api = new ParseServer({ var app = express(); // Serve static assets from the /public folder // Serve the Parse API on the /parse URL prefix // Parse Server plays nicely with the rest of your web routes // There will be a test page available on the /test path of your server url var port = process.env.PORT || 1337; // This will enable the Live Query real-time server ` |
Yes ... just add masterKey: process.env.MASTER_KEY || 'MASTERKEYHERE' :) |
Thanks. that fixed one error, but a new one presented itself.
|
Okay :) Just write this in your terminal:
and then:
:) |
Thanks, that fixed it...now exactly what step would I now be on in migrating data? Do I run the curl POST command from here in same window that NPM is running on to test, or do I do that from somewhere else. The "simple" migration guide branches off in so many places at the beginning it's tough to keep straight. |
Just use MongoChef for MongoDB (http://3t.io/) and export your data on your laptop and after that import it to your local MongoDB. I think will be the easiest way to do it :) |
I already have the data migrated, and I see it in mLab in my Collections, it's all there. I just can't figure out what all to do from here, as the CURL command Parse says to use to test comes up with syntax errors as well for missing ; before statement |
I can't get what are you trying to do :) |
Sorry, let me create a new issue on here so we don't keep a thread going with unrelated stuff. |
:) |
I am trying to migrate my parse data. I cloned the Server Example app, updated the url inside it with the mongodb address, and my master key, but I get this error with starting the
nam
The text was updated successfully, but these errors were encountered: