简体   繁体   English

Heroku无法正常工作,我不知道从哪里开始

[英]Heroku not working and I don't know where to start

I apologize for this being a vague question but I don't know what is going wrong so I don't know how to ask the questions. 对于这个含糊的问题,我深表歉意,但是我不知道出了什么问题,所以我也不知道该怎么问。

I set up a rails app and it's working locally. 我设置了一个Rails应用程序,它在本地运行。 However, when creating it on Heroku Create and it gets set up on my Heroku server it does not work. 但是,在Heroku Create上创建它并在我的Heroku服务器上对其进行设置时,它不起作用。 When I run Heroku open I get this page: 当我运行Heroku open时,会显示以下页面:

https://polar-taiga-65467.herokuapp.com/ https://polar-taiga-65467.herokuapp.com/

I can post logs or anything else to help. 我可以发布日志或其他任何帮助。 If someone can help me figure out what to do from here it would be appreciated. 如果有人可以帮助我从这里弄清楚该怎么办,将不胜感激。

Here is my GitHub project: https://github.com/TomTom319/morali-tee 这是我的GitHub项目: https : //github.com/TomTom319/morali-tee

Here is the log from Heroku: 这是Heroku的日志:

2018-01-16T05:13:18.292500+00:00 app[web.1]: I,
[2018-01-16T05:13:18.292411 #4]  INFO -- :
[99bf3dd0-59b3-4438-a3f7-36a037174b55]   Rendering simple_pages/index.html.erb within layouts/application
2018-01-16T05:13:18.295106+00:00 app[web.1]:
[99bf3dd0-59b3-4438-a3f7-36a037174b55]     3:  2018-01-16T05:13:18.293930+00:00 app[web.1]: I,
[2018-01-16T05:13:18.293863 #4]  INFO -- :
[99bf3dd0-59b3-4438-a3f7-36a037174b55]   Rendered simple_pages/index.html.erb within layouts/application (1.3ms)
2018-01-16T05:13:18.294179+00:00 app[web.1]: I,
[2018-01-16T05:13:18.294089 #4]  INFO -- :
[99bf3dd0-59b3-4438-a3f7-36a037174b55] Completed 500 Internal Server Error in 15ms 2018-01-16T05:13:18.294881+00:00 app[web.1]: F,
[2018-01-16T05:13:18.294798 #4] FATAL -- :
[99bf3dd0-59b3-4438-a3f7-36a037174b55]    2018-01-16T05:13:18.295107+00:00 app[web.1]:
[99bf3dd0-59b3-4438-a3f7-36a037174b55]     4: <%= image_tag("yellowtee", class: "img-responsive first-tee")%>
2018-01-16T05:13:18.295101+00:00 app[web.1]: F,
[2018-01-16T05:13:18.295028 #4] FATAL -- :
[99bf3dd0-59b3-4438-a3f7-36a037174b55]     1: <h1 style="color:red;">MoraliTee</h1> 2018-01-16T05:13:18.295104+00:00
app[web.1]: [99bf3dd0-59b3-4438-a3f7-36a037174b55]     2: <p>Welcome! We are on a mission to give back to people around the world</p>
2018-01-16T05:13:18.295158+00:00 app[web.1]: F,
[2018-01-16T05:13:18.295086 #4] FATAL -- :
[99bf3dd0-59b3-4438-a3f7-36a037174b55]    2018-01-16T05:13:18.760114+00:00 heroku[router]: at=info method=GET
path="/favicon.ico" host=polar-taiga-65467.herokuapp.com
request_id=6a2ec4b7-7054-46b7-b76a-28ef5ab3f69a fwd="24.15.217.85"
dyno=web.1 connect=0ms service=2ms status=200 bytes=143 protocol=https
2018-01-16T05:13:18.293286+00:00 heroku[router]: at=info method=GET
path="/" host=polar-taiga-65467.herokuapp.com
request_id=99bf3dd0-59b3-4438-a3f7-36a037174b55 fwd="24.15.217.85" dyno=web.1 connect=0ms service=22ms status=500 bytes=1827
protocol=https

Simple_pages/index.html.erb code below: 下面的Simple_pages/index.html.erb代码:

<h1 style="color:red;">MoraliTee</h1>
<p>Welcome! We are on a mission to give back to people around the 
world</p>

<%= image_tag("yellowtee", class: "img-responsive first-tee")%>

There was a file type missing from the end of my image on my simple_pages/index.html.erb page. 在我的simple_pages / index.html.erb页面上,图像末尾缺少文件类型。 I needed to .jpg to the end of my source in my image_tag. 我需要在image_tag中将.jpg扩展到源代码的末尾。

Thank you @mmichael for your help in identifying the issue. 感谢@mmichael在确定问题上的帮助。

I thought there was something wrong with my db but I was incorrect. 我以为数据库有问题,但是我不正确。 Thanks for your help. 谢谢你的帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我的Heroku应用崩溃了(错误H10),我不知道为什么 - My Heroku app is crashing (error H10) and I don't know why Rails 功能规范:调用了外部 Google 字体 API,但我不知道在哪里 - Rails feature specs: external Google font API is called, but I don't know where 处理不是从午夜开始的日子 - Working with days which don't start at midnight Rails figaro gem-不知道如何构建任务“ figaro:heroku”(Rails 4 / figaro gem / heroku) - Rails figaro gem - Don't know how to build task 'figaro:heroku' (Rails 4/figaro gem/heroku)) 在Rails视图上出现429错误,但我不知道我在哪里向Shopify的API发送请求 - 429 error on my rails view but I don't know where I'm sending requests to Shopify's API 不要在Heroku上显示背景图片。 但是当地人在工作 - Don't show background images on Heroku. But local is working 使用Resque的工作在Heroku上给出了“不知道如何构建任务'工作:工作'” - Jobs with Resque gives “Don't know how to build task 'jobs:work'” on Heroku Heroku调度程序“不知道如何构建任务&#39;update_lines&#39;” - Heroku scheduler “Don't know how to build task 'update_lines'” 在Heroku日志中出现此错误:不知道如何构建任务&#39;jobs:work&#39; - Getting this error in Heroku logs: Don't know how to build task 'jobs:work' 我不知道我在用什么版本的Ruby - I don't know what verision of Ruby I am using
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM