为什么我的应用程序没有出现在Heroku上? [英] Why is my app not appearing on Heroku?

查看:121
本文介绍了为什么我的应用程序没有出现在Heroku上?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在学习Rails,并且正在做一个名为Railsbridge的Rails教程。我一直遵循所有步骤,直到部署到Heroku(git push heroku master),但我的应用程序未出现在Heroku中 - 我只是收到我们很抱歉,但出错了错误消息。



终端出现三种可能的错误似乎是:

1)组中的宝石开发和测试[这些都在我的gemfile -ed。]没有安装,它被安装到./vendor/bundle(顺便说一下,我的应用程序的'vendor'文件夹中没有名为bundle的目录)



2)我的应用程序需要一个procfile - 但我做了一个!



3)这个,但我不知道这意味着什么:(process:11462):GLib-CRITICAL **:g_slice_set_config:assertion'sys_page_size == 0'failed。

任何想法?我添加了文件并在推送前致力于git,我确信它。 $ b使用 git push heroku master 时,请确保您掌握了所有更改。
然后运行 heroku运行rake db:migrate 将数据库迁移到heroku。
有时您需要重新启动应用程序运行 heroku restart
您可以使用 heroku日志查看错误。
如果您将其发布到git集线器上,请给我们一个代码链接。


I'm learning Rails and I am doing a Rails tutorial called Railsbridge. I have followed all the steps until the point where I deploy to Heroku (git push heroku master), but my app doesn't appear in Heroku - I just get the "We're sorry, but something went wrong" error message.

The three possible errors that come up in the terminal seem to be

1) "Gems in the groups development and test [these are in my gemfile -ed.] were not installed. It was installed into ./vendor/bundle" ( btw, there is no directory in my app's 'vendor' folder called "bundle")

2) that my app needed a procfile - but I made one!

3) this, but I don't know what it means: (process:11462): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed.

Any ideas? I added files and committed to git before pushing, I'm sure of it.

解决方案

Run heroku create to create an app from the start Make sure you are in master when using git push heroku masterand make sure you have committed all you changes. Then run heroku run rake db:migrate to migrate database to heroku. Sometimes you need to restart application run heroku restart. You can see the error using heroku logs. If you posted it on git hub, give us a link to the code.

这篇关于为什么我的应用程序没有出现在Heroku上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆