-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Parse server with Heroku #472
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
Comments
You need to use babel, |
It should definitely use lib/index.js instead of the src. I think it's been like that since the source was refactored |
This should definitely be fixed with 2.1.0. Please update and retry. |
@gfosco thanks. however, I have used the newest version. Got different message. Please kindly help. 2016-02-18T04:37:42.704431+00:00 heroku[web.1]: Process exited with status 1 |
I also got the similar. I just use git clone to download. Anyone can help? 2016-02-18T15:18:20.133890+00:00 heroku[web.1]: State changed from crashed to starting |
It seems that |
I have done npm install. The lib and node_modules directory already created. I am using heroku. Other than npm install, is there any other steps? Thanks |
@edwardyue does it work on your local machine? |
Seems not working too...but I did get npm warn about monogodb during npm install... Would it be a matter? |
try to remove your ./lib and your ./node_modules and re-run |
Thanks Florent! but i still getting the same error, any thoughts? 2016-02-19T03:42:09.864702+00:00 heroku[web.1]: Starting process with command |
it seems that the root cause it that ../lib/index cannot be found.... any idea how to fix it? |
does it run locally? |
yes..i can run it locally but just getting {"error":"unauthorized"} |
but at least it could launch the URL... |
Is your environment properly configured, proper configuration passed to ParseServer, Parse is initialized with the proper keys etc... |
um...i believe so..at least i could startup parse-server without error when using nom start locally. but in Heroku, the nom start generate the above error warning that there is no ../lib/index found... but in browsing lib directory, i could only find index.js but no "index" file. would it be the root cause? |
That is very very odd indeed. node resolves the filename, and there is no need to specify the .js extension |
Sorry that I made a silly mistake. I have not add the lib and node_modules Thanks for helping on that:) Florent Vilmart [email protected] 於 2016年2月19日星期五 寫道:
Thanks and Regards, |
@edwardyue I had download parse server from git. and add index.js to launch my parse server. Did I missed any step? please kindly help. I am not familiar with Node.js. thanks 2016-02-19T06:58:07.356938+00:00 heroku[slug-compiler]: Slug compilation started |
I don't think you need to add index.js The index.js already in Src folder. And when you run npm install, it will AnChiChang [email protected] 於 2016年2月19日星期五 寫道:
Thanks and Regards, |
thanks for your info. I had download all doc from git. and only modify index.js under src like below. var batch = require('./batch'), import { GridStoreAdapter } from './Adapters/Files/GridStoreAdapter'; import ParsePushAdapter from './Adapters/Push/ParsePushAdapter'; import { ClassesRouter } from './Routers/ClassesRouter'; import { FileLoggerAdapter } from './Adapters/Logger/FileLoggerAdapter'; // Mutate the Parse object to add the Cloud Code handlers var api = new ParseServer({ // Serve the Parse API on the /parse URL prefix app.listen(1337, function() { function ParseServer(args) { after deploy got below error message: 2016-02-19T07:29:32.025665+00:00 heroku[web.1]: State changed from crashed to starting |
I actually have not amend the index.js but bin/pares-server. In that file, E.g. Amend the line options.Masterkey = 'your key' AnChiChang [email protected] 於 2016年2月19日星期五 寫道:
Thanks and Regards, |
thanks, I had undo src/index.js, and modify bin/parse-server according your instruction. and deploy to heroku, got following error message 2016-02-19T07:55:34.395243+00:00 heroku[web.1]: Starting process with command |
That exactly same as mine before... U have not commit the lib and In parse-server directory, Try to type git add * -A -f AnChiChang [email protected] 於 2016年2月19日星期五 寫道:
Thanks and Regards, |
in the root of parse server foloer. and type below. nothing to commit, working directory clean AN-CHICHANGdeMacBook-Pro:parse-server-20160216 anchi$ git add * -A -f |
Maybe u try explicitly add lib and node_modules? git add lib -f On your last command, it should be git push heroku master AnChiChang [email protected] 於 2016年2月19日星期五 寫道:
Thanks and Regards, |
I could not found lib and node_modules in my parse server folder, Did I miss to download?? |
This two directory are generated by "npm install" Have u ran this command before? AnChiChang [email protected] 於 2016年2月19日星期五 寫道:
Thanks and Regards, |
@edwardyue however, In heroku log, after commit, system display below message: and My App (iOS by swift) still can't get PFObject info... |
I think u are not using latest parse sdk.. AnChiChang [email protected] 於 2016年2月19日星期五 寫道:
Thanks and Regards, |
I use parse sdk version 1.12, got below message 2016-02-19 19:17:59.337 GroupBuy[10813:3476362] [Error]: Failed to run command eventually with error: Error Domain=NSCocoaErrorDomain Code=3840 "JSON text did not start with array or object and option to allow fragments not set." UserInfo={NSDebugDescription=JSON text did not start with array or object and option to allow fragments not set.} |
sorry i don't know this too...as i just played parse for 2 weeks.... I think you may need parse expert to answer your questions On Fri, Feb 19, 2016 at 7:19 PM, AnChiChang [email protected]
Thanks and Regards, |
I think my parse server in Heroku is not running.
can I verify my step with your?
right? |
Yes I follow the exact steps. But I think it could be better to run npm AnChiChang [email protected] 於 2016年2月20日星期六 寫道:
Thanks and Regards, |
hello,
I have a parse.com user want to migrate my app to Heroku. However, when I testing the newest parse server source code (that from https://github.com/ParsePlatform/parse-server), only download and deploy Heroku. then got below error message.
I think that src/index.js file is from the Parse team. Could you kindly verify and advise. thanks.
2016-02-17T19:52:36.120656+00:00 heroku[web.1]: Starting process with command
npm start
2016-02-17T19:52:39.312161+00:00 app[web.1]:
2016-02-17T19:52:39.312171+00:00 app[web.1]: > [email protected] start /app
2016-02-17T19:52:39.312173+00:00 app[web.1]: > ./bin/parse-server
2016-02-17T19:52:39.312173+00:00 app[web.1]:
2016-02-17T19:52:39.625902+00:00 app[web.1]: /app/src/index.js:14
2016-02-17T19:52:39.625906+00:00 app[web.1]: import { GridStoreAdapter } from './Adapters/Files/GridStoreAdapter';
2016-02-17T19:52:39.625907+00:00 app[web.1]: ^^^^^^
2016-02-17T19:52:39.625908+00:00 app[web.1]:
2016-02-17T19:52:39.625908+00:00 app[web.1]: SyntaxError: Unexpected token import
2016-02-17T19:52:39.625909+00:00 app[web.1]: at exports.runInThisContext (vm.js:53:16)
2016-02-17T19:52:39.625909+00:00 app[web.1]: at Module._compile (module.js:387:25)
2016-02-17T19:52:39.625911+00:00 app[web.1]: at Module.load (module.js:357:32)
2016-02-17T19:52:39.625910+00:00 app[web.1]: at Object.Module._extensions..js (module.js:422:10)
2016-02-17T19:52:39.625912+00:00 app[web.1]: at Module.require (module.js:367:17)
2016-02-17T19:52:39.625912+00:00 app[web.1]: at Function.Module._load (module.js:314:12)
2016-02-17T19:52:39.625913+00:00 app[web.1]: at require (internal/module.js:16:19)
2016-02-17T19:52:39.625914+00:00 app[web.1]: at Object. (/app/bin/parse-server:3:19)
2016-02-17T19:52:39.625915+00:00 app[web.1]: at Object.Module._extensions..js (module.js:422:10)
2016-02-17T19:52:39.625914+00:00 app[web.1]: at Module._compile (module.js:413:34)
2016-02-17T19:52:39.641602+00:00 app[web.1]: npm ERR! Linux 3.13.0-71-generic
2016-02-17T19:52:39.642067+00:00 app[web.1]: npm ERR! argv "/app/.heroku/node/bin/node" "/app/.heroku/node/bin/npm" "start"
2016-02-17T19:52:39.631236+00:00 app[web.1]:
2016-02-17T19:52:39.643377+00:00 app[web.1]: npm ERR! npm v3.6.0
2016-02-17T19:52:39.643666+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2016-02-17T19:52:39.643896+00:00 app[web.1]: npm ERR! [email protected] start:
./bin/parse-server
2016-02-17T19:52:39.644122+00:00 app[web.1]: npm ERR! Exit status 1
2016-02-17T19:52:39.642384+00:00 app[web.1]: npm ERR! node v5.6.0
2016-02-17T19:52:39.644367+00:00 app[web.1]: npm ERR!
2016-02-17T19:52:39.644609+00:00 app[web.1]: npm ERR! Failed at the [email protected] start script './bin/parse-server'.
2016-02-17T19:52:39.645067+00:00 app[web.1]: npm ERR! If you do, this is most likely a problem with the parse-server package,
2016-02-17T19:52:39.644843+00:00 app[web.1]: npm ERR! Make sure you have the latest version of node.js and npm installed.
2016-02-17T19:52:39.645303+00:00 app[web.1]: npm ERR! not with npm itself.
2016-02-17T19:52:39.645525+00:00 app[web.1]: npm ERR! Tell the author that this fails on your system:
2016-02-17T19:52:39.646702+00:00 app[web.1]: npm ERR! You can get information on how to open an issue for this project with:
2016-02-17T19:52:39.646483+00:00 app[web.1]: npm ERR! ./bin/parse-server
2016-02-17T19:52:39.647393+00:00 app[web.1]: npm ERR! npm owner ls parse-server
2016-02-17T19:52:39.653722+00:00 app[web.1]: npm ERR! /app/npm-debug.log
2016-02-17T19:52:39.647613+00:00 app[web.1]: npm ERR! There is likely additional logging output above.
2016-02-17T19:52:39.646964+00:00 app[web.1]: npm ERR! npm bugs parse-server
2016-02-17T19:52:39.647193+00:00 app[web.1]: npm ERR! Or if that isn't available, you can get their info via:
2016-02-17T19:52:39.653206+00:00 app[web.1]:
2016-02-17T19:52:39.653719+00:00 app[web.1]: npm ERR! Please include the following file with any support request:
The text was updated successfully, but these errors were encountered: