Ruby on rails 使用git push to openshift时使用Ruby on Rails
我使用的是免费的OpenShift主机。以下是我的简单代码: routes.rbRuby on rails 使用git push to openshift时使用Ruby on Rails,ruby-on-rails,openshift,Ruby On Rails,Openshift,我使用的是免费的OpenShift主机。以下是我的简单代码: routes.rb RailsApp::Application.routes.draw do resources: welcome 视图>欢迎>index.htm.erb this is my test 欢迎光临 class WelcomeController < ApplicationController def index end end 主页可用, 但是页面不存在!就好像它还没有被创造出来一样!这里有什
RailsApp::Application.routes.draw do
resources: welcome
视图>欢迎>index.htm.erb
this is my test
欢迎光临
class WelcomeController < ApplicationController
def index
end
end
主页可用,
但是页面不存在!就好像它还没有被创造出来一样!这里有什么问题 日志文件中是否有错误?您可以通过运行rhc tail命令来检查日志文件。当您在本地运行它时,该代码是否正常工作?您的控制器是否由模型和数据库支持?否则,我认为您的资源声明将无法正常工作?
git add.
git commit -a -m 'Some commit message'
git push