[英]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.