Skip to content

Failed to start a Parse-Server-Example app on Heroku #642

Closed
@grassland-curing-cfa

Description

@grassland-curing-cfa

I have cloned the Parse-Server-Example repo to my own account on GitHub as "https://github.com/{MY_ACCOUNT}/ParseServerExample".

Then I tried to deploy the Parse-Server-Example repo as a Heroku application. All Config Variables on Heroku have been set up, e.g. APP_ID, MASTER_KEY, MONGOLAB_URI, PARSE_MOUNT and REST_API_KEY. My previous Parse hosted MongoDB database has been migrated to MongoLab successfully.

When I tried to deploy via GitHub not Heroku Git, it was correctly connected to my repo and deployment was apparently running well. It showed "Deployed to Heroku". But when I clicked the "View" button, it game me a "Applicaiton Error" page. I then clicked "View logs", Heroku logs showed the following error message:

State changed from crashed to starting

2016-02-25T05:13:55.607626+00:00 app[web.1]: > node index.js

2016-02-25T05:13:59.030078+00:00 app[web.1]: 

2016-02-25T05:13:59.086298+00:00 app[web.1]: npm ERR! Linux 3.13.0-77-generic

2016-02-25T05:13:59.087035+00:00 app[web.1]: npm ERR! node v5.6.0

2016-02-25T05:13:59.088165+00:00 app[web.1]: npm ERR! code ELIFECYCLE

2016-02-25T05:13:59.088380+00:00 app[web.1]: npm ERR! [email protected] start: `node index.js`

2016-02-25T05:13:59.094116+00:00 app[web.1]: npm ERR! Failed at the [email protected] start script 'node index.js'.

2016-02-25T05:13:59.094277+00:00 app[web.1]: npm ERR! Make sure you have the latest version of node.js and npm installed.

2016-02-25T05:13:59.094475+00:00 app[web.1]: npm ERR! If you do, this is most likely a problem with the ParseServerExample package,

2016-02-25T05:13:59.094680+00:00 app[web.1]: npm ERR! not with npm itself.

2016-02-25T05:13:59.095077+00:00 app[web.1]: npm ERR!     node index.js

2016-02-25T05:13:59.095463+00:00 app[web.1]: npm ERR!     npm bugs ParseServerExample

2016-02-25T05:13:59.095846+00:00 app[web.1]: npm ERR!     npm owner ls ParseServerExample

2016-02-25T05:13:59.030140+00:00 app[web.1]: /app/node_modules/parse-server/lib/requiredParameter.js:8

2016-02-25T05:13:59.030141+00:00 app[web.1]:   throw errorMessage;

2016-02-25T05:13:59.030142+00:00 app[web.1]:   ^

2016-02-25T05:13:59.030146+00:00 app[web.1]: **You must provide a serverURL!**

2016-02-25T05:13:59.059589+00:00 app[web.1]: 

2016-02-25T05:13:59.086754+00:00 app[web.1]: npm ERR! argv "/app/.heroku/node/bin/node" "/app/.heroku/node/bin/npm" "start"

2016-02-25T05:13:59.087914+00:00 app[web.1]: npm ERR! npm  v3.6.0

2016-02-25T05:13:59.088588+00:00 app[web.1]: npm ERR! Exit status 1

2016-02-25T05:13:59.088801+00:00 app[web.1]: npm ERR! 

2016-02-25T05:13:59.094872+00:00 app[web.1]: npm ERR! Tell the author that this fails on your system:

2016-02-25T05:13:59.095263+00:00 app[web.1]: npm ERR! You can get information on how to open an issue for this project with:

2016-02-25T05:13:59.095668+00:00 app[web.1]: npm ERR! Or if that isn't available, you can get their info via:

2016-02-25T05:14:00.007554+00:00 heroku[web.1]: State changed from starting to crashed

I guess the problem was about "serverURL". Do I need to set up a "serverURL" anywhere in index.js?

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