"应用程序错误"将Parse迁移到Heroku

时间:2016-02-25 01:48:24

标签: heroku parse-platform

因为Parse正在关闭,我正在将现有的Parse应用程序迁移到Heroku中。我按照此处列出的步骤操作:https://guides.codepath.com/android/Configuring-a-Parse-Server#testing-deployment

但是,当我测试部署时,我总是会收到此错误:

enter image description here

我是否使用其他教程是一样的。我输入了APP_IDMASTER_KEY,但问题仍然存在。有什么我可以错过的吗?

错误记录

2016-02-25T06:52:03.953554+00:00 app[web.1]: > node index.js
2016-02-25T06:52:05.303767+00:00 app[web.1]: npm ERR! Linux 3.13.0-77-generic
2016-02-25T06:52:05.304153+00:00 app[web.1]: npm ERR! argv "/app/.heroku/node/bin/node" "/app/.heroku/node/bin/npm" "start"
2016-02-25T06:52:05.304411+00:00 app[web.1]: npm ERR! node v5.6.0
2016-02-25T06:52:05.304806+00:00 app[web.1]: npm ERR! npm  v3.6.0
2016-02-25T06:52:05.305100+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2016-02-25T06:52:05.305271+00:00 app[web.1]: npm ERR! parse-server-example@1.1.0 start: `node index.js`
2016-02-25T06:52:05.305423+00:00 app[web.1]: npm ERR! Exit status 1
2016-02-25T06:52:05.305594+00:00 app[web.1]: npm ERR!
2016-02-25T06:52:05.305757+00:00 app[web.1]: npm ERR! Failed at the parse-server-example@1.1.0 start script 'node index.js'.
2016-02-25T06:52:05.305918+00:00 app[web.1]: npm ERR! Make sure you have the latest version of node.js and npm installed.
2016-02-25T06:52:05.306073+00:00 app[web.1]: npm ERR! If you do, this is most likely a problem with the parse-server-example package,
2016-02-25T06:52:05.306231+00:00 app[web.1]: npm ERR! not with npm itself.
2016-02-25T06:52:05.306380+00:00 app[web.1]: npm ERR! Tell the author that this fails on your system:
2016-02-25T06:52:05.306529+00:00 app[web.1]: npm ERR!     node index.js
2016-02-25T06:52:05.306677+00:00 app[web.1]: npm ERR! You can get information on how to open an issue for this project with:
2016-02-25T06:52:05.280473+00:00 app[web.1]: /app/node_modules/parse-server/lib/requiredParameter.js:8
2016-02-25T06:52:05.280468+00:00 app[web.1]:
2016-02-25T06:52:05.280474+00:00 app[web.1]:   throw errorMessage;
2016-02-25T06:52:05.306835+00:00 app[web.1]: npm ERR!     npm bugs parse-server-example
2016-02-25T06:52:05.307014+00:00 app[web.1]: npm ERR! Or if that isn't available, you can get their info via:
2016-02-25T06:52:05.280478+00:00 app[web.1]: You must provide a serverURL!
2016-02-25T06:52:05.280474+00:00 app[web.1]:   ^
2016-02-25T06:52:05.307138+00:00 app[web.1]: npm ERR!     npm owner ls parse-server-example
2016-02-25T06:52:05.295814+00:00 app[web.1]:
2016-02-25T06:52:05.307269+00:00 app[web.1]: npm ERR! There is likely additional logging output above.
2016-02-25T06:52:05.310942+00:00 app[web.1]: npm ERR! Please include the following file with any support request:
2016-02-25T06:52:05.310734+00:00 app[web.1]:
2016-02-25T06:52:05.311092+00:00 app[web.1]: npm ERR!     /app/npm-debug.log
2016-02-25T06:52:05.900578+00:00 heroku[web.1]: Process exited with status 1
2016-02-25T06:52:05.918417+00:00 heroku[web.1]: State changed from starting to crashed

1 个答案:

答案 0 :(得分:0)

我忘了输入SERVER_URL或输错了。它应该是https://(appname).herokuapp.com/(parsemount)

因此,如果应用名称为abc且PARSE_MOUNT为/parse,则SERVER_URL为https://abc.herokuapp.com/parse