推导轨应用程序到heroku [英] push rails app to heroku

查看:104
本文介绍了推导轨应用程序到heroku的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



当我到达最后一步时:

  git push heroku master 

它不起作用,给我这些错误:

 计数对象:85,完成。 
使用多达2个线程的增量压缩。
压缩对象:100%(74/74),完成。
写作对象:100%(85/85),24.38 KiB,完成。
总计85(增量23),重用0(增量0)

-----> Heroku接收推送
! Heroku推送被拒绝,没有检测到Rails或Rack应用程序。

错误:hooks / pre-receive已退出,错误代码为1
至git@heroku.com:smooth-dusk-26.git
! [remote rejected] master - > master(pre-receive hook refused)
错误:未能将某些参考文献推送到'git@heroku.com:smooth-dusk-26.git'

我不知道我在做什么错误:(b / b) p>在创建Rails应用程序时,是否将目录切换到应用程序的目录中?您必须执行应用程序目录中的所有命令。

  rails myapp 
cd myapp


I am trying to push a rails application to heroku.

When I get to the last step:

git push heroku master

It doesn't work and gives me these errors:

Counting objects: 85, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (74/74), done.
Writing objects: 100% (85/85), 24.38 KiB, done.
Total 85 (delta 23), reused 0 (delta 0)

-----> Heroku receiving push
 !     Heroku push rejected, no Rails or Rack app detected.

error: hooks/pre-receive exited with error code 1
To git@heroku.com:smooth-dusk-26.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:smooth-dusk-26.git'

I don't know what I'm doing wrong :(

解决方案

When you created your Rails application, did you change directory into the directory of the application? You have to perform all the commands from within the application's directory.

rails myapp
cd myapp

这篇关于推导轨应用程序到heroku的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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