一个月Rails -上线与Heroku -应用程序错误



我已经到达One Month Rails的"Going Online With Heroku"部分。执行以下步骤后

` Pudge@PUDGE-PC ~/desktop/pinteresting (master)
  $ heroku keys:add
  Found the following SSH public keys:
  1) github_rsa.pub
  2) id_rsa.pub
  Which would you like to use with your Heroku account? 2
  Uploading SSH public key C:/Users/Pudge/.ssh/id_rsa.pub... done
  Pudge@PUDGE-PC ~/desktop/pinteresting (master)
  $ heroku create
  Creating evening-oasis-5199... done, stack is cedar
  http://evening-oasis-5199.herokuapp.com/ | git@heroku.com:evening-oasis-5199.git
  Git remote heroku added`

我在给定的位置打开应用程序,它返回"应用程序错误"

`←[36m2014-03-11T00:16:24.525751+00:00 heroku[api]:←[0m Enable Logplex by chitrad
 er84@gmail.com
 ←[36m2014-03-11T00:16:24.525824+00:00 heroku[api]:←[0m Release v2 created by chi
 trader84@gmail.com
 ←[33m2014-03-11T00:16:38.664429+00:00 heroku[router]:←[0m at=error code=H14 desc
 ="No web processes running" method=GET path=/ host=evening-oasis-5199.herokuapp.
 com request_id=8229c76f-de74-43d6-ac14-fa3ecefe8ff6 fwd="99.9.45.163" dyno= conn
 ect= service= status=503 bytes=
 ←[33m2014-03-11T00:26:09.486092+00:00 heroku[router]:←[0m at=error code=H14 desc
 ="No web processes running" method=GET path=/ host=evening-oasis-5199.herokuapp.
 com request_id=afba73c5-ad0d-41a2-8d0c-9faf75dc4e0b fwd="99.9.45.163" dyno= conn
 ect= service= status=503 bytes=
 ←[33m2014-03-11T00:26:09.717414+00:00 heroku[router]:←[0m at=error code=H14 desc
 ="No web processes running" method=GET path=/favicon.ico host=evening-oasis-5199
 .herokuapp.com request_id=4c3f6b80-1f0a-42d5-80f6-3510b093872b fwd="99.9.45.163"
  dyno= connect= service= status=503 bytes=
  ←[33m2014-03-11T00:28:09.983774+00:00 heroku[router]:←[0m at=error code=H14 desc
  ="No web processes running" method=GET path=/ host=evening-oasis-5199.herokuapp.
  com request_id=21b356bb-cbcb-4489-82e5-6e6d0c69dfd5 fwd="99.9.45.163" dyno= conn
  ect= service= status=503 bytes=
  ←[33m2014-03-11T00:28:10.239213+00:00 heroku[router]:←[0m at=error code=H14 desc
  ="No web processes running" method=GET path=/favicon.ico host=evening-oasis-5199
  .herokuapp.com request_id=fcf0e24d-f9f6-42a5-b382-841ed9704e1e fwd="99.9.45.163"
   dyno= connect= service= status=503 bytes=
   ←[32m2014-03-11T03:15:10+00:00 heroku[slug-compiler]:←[0m Slug compilation start
   ed
   ←[32m2014-03-11T03:15:32+00:00 heroku[slug-compiler]:←[0m Slug compilation faile
   d: failed to compile Ruby app
   ←[36m2014-03-11T03:15:57.572557+00:00 heroku[api]:←[0m Starting process with com
   mand `rake db:migrate` by chitrader84@gmail.com
   ←[35m2014-03-11T03:15:59.264402+00:00 heroku[run.1396]:←[0m Starting process wit
  h command `rake db:migrate`
  ←[35m2014-03-11T03:15:59.226632+00:00 heroku[run.1396]:←[0m Awaiting client
  ←[35m2014-03-11T03:15:59.359699+00:00 heroku[run.1396]:←[0m State changed from s
  tarting to up
  ←[35m2014-03-11T03:16:01.043376+00:00 heroku[run.1396]:←[0m State changed from u
  p to complete
  ←[35m2014-03-11T03:16:01.037656+00:00 heroku[run.1396]:←[0m Process exited with
   status 1
  ←[33m2014-03-11T03:16:10.744992+00:00 heroku[router]:←[0m at=error code=H14 desc
  ="No web processes running" method=GET path=/favicon.ico host=evening-oasis-5199
  .herokuapp.com request_id=add463f3-a0ad-4682-aa06-b0e7649481a3 fwd="99.9.45.163"
   dyno= connect= service= status=503 bytes=

我的日志是这样写的

所以我只是做了一个快速创建来测试。

步骤1:

rails new testapp
cd testapp
git add .
git commit -m 'initial commit'
heroku create

在这里,我做了

heroku open

和我得到相同的应用程序错误相同的"No web processes running"

我的感觉是你停在这里,没有推进你最初的提交

你需要额外运行这个:

git push heroku master
heroku run rake db:migrate          <--- only needed if you have migrations
heroku open

错误日志显示"No web processes running"。

那么运行一个怎么样?

试试这个

heroku ps:scale web=1

相关内容

  • 没有找到相关文章

最新更新