2012-03-05 149 views
1

對於大學考試,我創建了一個Ruby on Rails應用程序。在heroku上部署第一個ruby on rails應用程序

目前,我的應用程序正在編寫http://localhost:3000/say/hello

我想在Heroku的web服務器上上傳我的應用程序。問題是它不運行Hello World程序。相反,我看到了Ruby on Rails應用程序的開始視圖:http://tecweb2.heroku.com/

如何讓我的hello世界程序在Heroku上運行?

+0

你」我想要t o去http://tecweb2.heroku.com/say/hello,但似乎現在引發錯誤。 'heroku logs'會顯示日誌,以便您可以看到發生了什麼問題。 – 2012-03-05 16:04:12

回答

2

您需要按照該頁面上的說明進行操作,主要是刪除public/index.html頁面。

+0

是的,請確保您刪除公用文件夾中的index.html – 2012-03-05 16:06:50

1

你應該使用這個命令來了解什麼在

heroku logs 

去任何顯示爲紅色時,你是如何處理

這裏有一個問題是,我用

創建工作流程heroku app

heroku create --stack cedar 

推送到你的git回購

git push origin master 

推到Heroku的回購

git push heroku master 

耙的Heroku

heroku run rake db:migrate 

這裏DATABSE是Heroku的入門指南,軌道3

http://devcenter.heroku.com/articles/rails3

相關問題