我创建了一个要在heroku上托管的亚硝酸盐项目。到处都写着这应该很容易,但是我的陨石应用程序有问题。
我创建了一个git并将其推送到github,然后
heroku create <appname>--stack cedar --region eu --buildpack https://github.com/kazlan/heroku-buildpack-meteorite.git
heroku config:set MONGO_URL=mongodb://<appname>:<password>@ds<port>.mongolab.com:<port>/<appname>--app <appname>
heroku config:set ROOT_URL=<appname>.herokuapp.com --app <appname>
git push heroku master
我按照此博客中的说明进行操作。
我的smart.json
{
"meteor": {
"tag": "v0.6.6.1"
},
"packages": {
"router": {},
"iron-router": {},
"meteor-pagedown": {}
}
}
我的package.json
{
"name": "<appname>",
"Version": "0.1",
"engines": {
"node": "0.10.20"
}
}
推送工作没有错误,但是如果我访问给定的URL,则不会运行任何项目。尽管我在heroku上的app目录中没有任何项目。我尝试了不同版本的不同buildpack,但是打包和推入不会给出任何错误,因此我希望这不是原因。有任何想法吗?您如何推动MRT应用程序?
编辑:
节点版本:0.10.20
流星版本:0.6.6.1
buildpack:https : //github.com/kazlan/heroku-buildpack-meteorite.git
登录:git push heroku master没有错误
登录:heroku日志
2013-12-08T18:49:54 + 00:00 heroku [slug-compiler]:Slug编译开始 2013-12-08T18:51:15.397421 + 00:00 heroku [web.1]:状态从崩溃更改为开始 2013-12-08T18:51:26.566548 + 00:00 heroku [web.1]:使用命令`.meteor / heroku_build / bin / node .meteor / heroku_build / app /启动进程 2013-12-08T18:51:29.082783 + 00:00 heroku [web.1]:进程退出,状态为1 2013-12-08T18:51:29.096104 + 00:00 heroku [web.1]:状态从开始更改为崩溃 2013-12-08T18:51:58.238045 + 00:00 heroku [api]:通过[email protected]部署c863f9d 2013-12-08T18:51:58.270433 + 00:00 heroku [api]:[email protected]创建的v10版本 2013-12-08T18:51:58 + 00:00 heroku [slug-compiler]:Slug编译完成 2013-12-08T18:51:59.374125 + 00:00 heroku [web.1]:状态从崩溃更改为开始 2013-12-08T18:53:23.956951 + 00:00 heroku [web.1]:使用命令`.meteor / heroku_build / bin / node .meteor / heroku_build / app /启动进程 2013-12-08T18:53:25.162070 + 00:00 app [web.1]:位于Function ._。each ._。forEach(/app/.meteor/heroku_build/app/programs/server/node_modu 2013-12-08T18:53:25.162072 + 00:00 app [web.1]:在/app/.meteor/heroku_build/app/programs/server/boot.js:81:5 2013-12-08T18:53:25.126861 + 00:00 app [web.1]: 2013-12-08T18:53:25.127646 + 00:00 app [web.1]:})。run(); 2013-12-08T18:53:25.162068 + 00:00 app [web.1]:在/app/.meteor/heroku_build/app/programs/server/boot.js:154:10 2013-12-08T18:53:25.162055 + 00:00 app [web.1]:错误:路由URL前缀必须以斜杠开头 2013-12-08T18:53:25.162067 + 00:00 app [web.1]:在packages / livedata.js:3930:3 2013-12-08T18:53:25.162063 + 00:00 app [web.1]:在新服务器上(packages / livedata / livedata_server.js:990) 2013-12-08T18:53:25.162064 + 00:00 app [web.1]:在Package(packages / livedata / server_convenience.js:10) 2013-12-08T18:53:25.162065 + 00:00 app [web.1]:在packages / livedata.js:3919:4处 2013-12-08T18:53:25.127719 + 00:00 app [web.1]:^ 2013-12-08T18:53:25.162061 + 00:00 app [web.1]:在新的StreamServer上(packages / livedata / stream_server.js:23) 2013-12-08T18:53:25.162069 + 00:00 app [web.1]:在Array.forEach(本机) 2013-12-08T18:53:25.162060 + 00:00 app [web.1]:在_.extend.declare(packages / routepolicy / routepolicy.js:95) 2013-12-08T18:53:26.328608 + 00:00 heroku [web.1]:进程退出,状态为8 2013-12-08T19:01:41.421171 + 00:00 heroku [web.1]:状态从崩溃更改为开始 2013-12-08T19:01:53.020659 + 00:00 heroku [web.1]:使用命令`.meteor / heroku_build / bin / node .meteor / heroku_build / app /启动进程 2013-12-08T19:01:54.925063 + 00:00 heroku [web.1]:进程退出,状态为8 2013-12-08T19:01:54.935099 + 00:00 heroku [web.1]:状态从开始更改为崩溃 2013-12-08T19:23:38.193259 + 00:00 heroku [web.1]:使用命令`.meteor / heroku_build / bin / node .meteor / heroku_build / app /启动进程 2013-12-08T19:23:39.257257 + 00:00 app [web.1]:/app/.meteor/heroku_build/app/programs/server/boot.js:185 2013-12-08T19:23:39.282724 + 00:00 app [web.1]:错误:路由URL前缀必须以斜杠开头 2013-12-08T19:23:39.282734 + 00:00 app [web.1]:在Package(packages / livedata / server_convenience.js:10) 2013-12-08T19:23:39.257504 + 00:00 app [web.1]:})。run(); 2013-12-08T19:23:39.282735 + 00:00 app [web.1]:在packages / livedata.js:3919:4处 2013-12-08T19:23:39.282732 + 00:00 app [web.1]:在新的StreamServer上(packages / livedata / stream_server.js:23) 2013-12-08T19:23:39.282733 + 00:00 app [web.1]:在新服务器上(packages / livedata / livedata_server.js:990) 2013-12-08T19:23:39.282737 + 00:00 app [web.1]:在packages / livedata.js:3930:3 2013-12-08T19:23:39.282738 + 00:00 app [web.1]:位于/app/.meteor/heroku_build/app/programs/server/boot.js:154:10 2013-12-08T19:23:39.282741 + 00:00 app [web.1]:在Array.forEach(本机) 2013-12-08T19:23:39.257508 + 00:00 app [web.1]:^ 2013-12-08T19:23:39.282730 + 00:00 app [web.1]:在_.extend.declare(packages / routepolicy / routepolicy.js:95) 2013-12-08T19:23:39.282742 + 00:00 app [web.1]:在Function ._。each ._。forEach(/app/.meteor/heroku_build/app/programs/server/node_modu 2013-12-08T19:23:39.282744 + 00:00 app [web.1]:位于/app/.meteor/heroku_build/app/programs/server/boot.js:81:5 2013-12-08T19:23:40.346902 + 00:00 heroku [web.1]:进程退出,状态为8 2013-12-08T19:23:40.361723 + 00:00 heroku [web.1]:状态从开始更改为崩溃 2013-12-08T19:24:11 + 00:00 heroku [slug-compiler]:Slug编译开始 2013-12-08T19:25:25.578489 + 00:00 heroku [api]:通过[email protected]部署158fb70 2013-12-08T19:25:25.624884 + 00:00 heroku [api]:由[email protected]创建的v11版 2013-12-08T19:25:25 + 00:00 heroku [slug-compiler]:Slug编译完成 2013-12-08T19:25:31.620118 + 00:00 heroku [web.1]:使用命令`.meteor / heroku_build / bin / node .meteor / heroku_build / app /启动进程 2013-12-08T19:25:32.559813 + 00:00 app [web.1]:/app/.meteor/heroku_build/app/programs/server/boot.js:185 2013-12-08T19:25:32.559536 + 00:00 app [web.1]: 2013-12-08T19:25:32.560055 + 00:00 app [web.1]:})。run(); 2013-12-08T19:25:32.560059 + 00:00 app [web.1]:^ 2013-12-08T19:25:32.585678 + 00:00 app [web.1]:在新的StreamServer上(packages / livedata / stream_server.js:23) 2013-12-08T19:25:32.585672 + 00:00 app [web.1]:错误:路由URL前缀必须以斜杠开头 2013-12-08T19:25:32.585680 + 00:00 app [web.1]:在新服务器上(packages / livedata / livedata_server.js:990) 2013-12-08T19:25:32.585683 + 00:00 app [web.1]:在packages / livedata.js:3930:3 2013-12-08T19:25:32.585682 + 00:00 app [web.1]:在packages / livedata.js:3919:4处 2013-12-08T19:25:32.585684 + 00:00 app [web.1]:在/app/.meteor/heroku_build/app/programs/server/boot.js:154:10 2013-12-08T19:25:32.585687 + 00:00 app [web.1]:位于/app/.meteor/heroku_build/app/programs/server/boot.js:81:5 2013-12-08T19:25:32.585677 + 00:00 app [web.1]:在_.extend.declare(packages / routepolicy / routepolicy.js:95) 2013-12-08T19:25:32.585686 + 00:00 app [web.1]:在Function ._。each ._。forEach(/app/.meteor/heroku_build/app/programs/server/node_modu 2013-12-08T19:25:32.585680 + 00:00 app [web.1]:在Package(packages / livedata / server_convenience.js:10) 2013-12-08T19:25:32.585685 + 00:00 app [web.1]:在Array.forEach(本机) 2013-12-08T19:25:33.651212 + 00:00 heroku [web.1]:进程退出,状态为8 2013-12-08T19:25:33.661018 + 00:00 heroku [web.1]:状态从开始更改为崩溃 2013-12-08T19:30:26.446591 + 00:00 heroku [api]:通过[email protected]添加BUILDPACK_URL配置 2013-12-08T19:30:26.480836 + 00:00 heroku [api]:由[email protected]创建的v12版 2013-12-08T19:30:27.107764 + 00:00 heroku [web.1]:状态从崩溃更改为开始 2013-12-08T19:30:36.996584 + 00:00 heroku [web.1]:使用命令`.meteor / heroku_build / bin / node .meteor / heroku_build / app /启动进程 2013-12-08T19:30:37.864812 + 00:00 app [web.1]:在packages / livedata.js:3930:3 2013-12-08T19:30:37.864813 + 00:00 app [web.1]:位于/app/.meteor/heroku_build/app/programs/server/boot.js:154:10 2013-12-08T19:30:37.864808 + 00:00 app [web.1]:在新服务器上(packages / livedata / livedata_server.js:990) 2013-12-08T19:30:37.864815 + 00:00 app [web.1]:在Array.forEach(本机) 2013-12-08T19:30:37.839490 + 00:00 app [web.1]:/app/.meteor/heroku_build/app/programs/server/boot.js:185 2013-12-08T19:30:37.864802 + 00:00 app [web.1]:错误:路由URL前缀必须以斜杠开头 2013-12-08T19:30:37.864806 + 00:00 app [web.1]:在_.extend.declare(packages / routepolicy / routepolicy.js:95) 2013-12-08T19:30:37.864807 + 00:00 app [web.1]:在新的StreamServer上(packages / livedata / stream_server.js:23) 2013-12-08T19:30:37.864810 + 00:00 app [web.1]:在Package(packages / livedata / server_convenience.js:10) 2013-12-08T19:30:37.864811 + 00:00 app [web.1]:在packages / livedata.js:3919:4处 2013-12-08T19:30:37.864817 + 00:00 app [web.1]:位于/app/.meteor/heroku_build/app/programs/server/boot.js:81:5 2013-12-08T19:30:37.864816 + 00:00 app [web.1]:在Function ._。each ._。forEach(/app/.meteor/heroku_build/app/programs/server/node_modu 2013-12-08T19:30:37.839680 + 00:00 app [web.1]:})。run(); 2013-12-08T19:30:37.839682 + 00:00 app [web.1]:^ 2013-12-08T19:30:37.839159 + 00:00 app [web.1]: 2013-12-08T19:30:38.910501 + 00:00 heroku [web.1]:进程退出,状态为8 2013-12-08T19:30:38.919917 + 00:00 heroku [web.1]:状态从开始更改为崩溃 2013-12-08T19:31:02 + 00:00 heroku [slug-compiler]:Slug编译开始 2013-12-08T19:31:57 + 00:00 heroku [slug-compiler]:Slug编译开始 2013-12-08T19:32:03.074816 + 00:00 heroku [web.1]:状态从崩溃更改为开始 2013-12-08T19:32:52.315403 + 00:00 heroku [web.1]:使用命令`.meteor / heroku_build / bin / node .meteor / heroku_build / app /启动进程 2013-12-08T19:32:53.078167 + 00:00 app [web.1]:流星需要Node v0.10.21或更高版本。 2013-12-08T19:32:54.206170 + 00:00 heroku [web.1]:进程退出,状态为1 2013-12-08T19:32:54.221724 + 00:00 heroku [web.1]:状态从开始更改为崩溃 2013-12-08T19:33:29.769873 + 00:00 heroku [api]:通过[email protected]部署8156405 2013-12-08T19:33:29.797561 + 00:00 heroku [api]:由[email protected]创建的v14版本 2013-12-08T19:33:29 + 00:00 heroku [slug-compiler]:Slug编译完成 2013-12-08T19:33:30.551592 + 00:00 heroku [web.1]:状态从崩溃更改为开始
这是我正在使用的buildpack。它对我有用。
--buildpack https://github.com/benstr/heroku-buildpack-meteorite
另外,将您的ROOT_URL更改为以http开头。那是你的似乎在抱怨的东西。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句