For an university exam, I'm creating a Ruby on Rails app.
对于大学考试,我正在创建一个Ruby on Rails应用程序。
Currently, my app is working on http://localhost:3000/say/hello.
目前,我的应用程序正在使用http:// localhost:3000 / say / hello。
I would like to upload my app on Heroku web server. The problem is that it doesn't run the hello world program. Instead I see the start view of Ruby on Rails app: http://tecweb2.heroku.com/.
我想在Heroku网络服务器上传我的应用程序。问题是它没有运行hello world程序。相反,我看到Ruby on Rails应用程序的起始视图:http://tecweb2.heroku.com/。
How do I get my hello world program to run on Heroku?
如何让我的hello world程序在Heroku上运行?
2 个解决方案
#1
2
You need to follow the instructions on that page, mainly delete the public/index.html
page.
您需要按照该页面上的说明进行操作,主要是删除public / index.html页面。
#2
1
you should use this command to understand whats going on
你应该使用这个命令来了解最新情况
heroku logs
whatever shows up in red is what you are having problems with
无论出现什么红色都是你遇到的问题
here is the workflow that I use
这是我使用的工作流程
create the heroku app
创建heroku应用程序
heroku create --stack cedar
push to your git repo
推送你的git repo
git push origin master
push to heroku repo
推送到heroku repo
git push heroku master
rake the databse in heroku
在heroku中挖出数据库
heroku run rake db:migrate
Here is the heroku getting started guide for rails 3
这是rails 3的heroku入门指南
#1
2
You need to follow the instructions on that page, mainly delete the public/index.html
page.
您需要按照该页面上的说明进行操作,主要是删除public / index.html页面。
#2
1
you should use this command to understand whats going on
你应该使用这个命令来了解最新情况
heroku logs
whatever shows up in red is what you are having problems with
无论出现什么红色都是你遇到的问题
here is the workflow that I use
这是我使用的工作流程
create the heroku app
创建heroku应用程序
heroku create --stack cedar
push to your git repo
推送你的git repo
git push origin master
push to heroku repo
推送到heroku repo
git push heroku master
rake the databse in heroku
在heroku中挖出数据库
heroku run rake db:migrate
Here is the heroku getting started guide for rails 3
这是rails 3的heroku入门指南