Skip to content

Parse server with Heroku #472

Closed
Closed
@AnChiChang

Description

@AnChiChang

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:

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