如何在rails 2项目中以编程方式获得路由列表。在一个Rails 3项目中,Rails.application.routes.routes做了我想要的事情。但当我在Rails2网站上尝试时。它会失败,并显示消息No application method defined on Rails object。
我正在部署多个网站上的Windows云服务的单一网站的角色。我已经添加了必需的绑定和主机文件条目。当我运行ping命令时,我也得到了响应。
但是,当RDP到VM并以localhost的形式在VM上本地浏览站点时,它是不可及的,并且显示的是404找不到。
来自IIS事件的错误
The application '/' belonging to site '1' has an invalid AppPoolId 'DefaultAppPool' set. Therefore, the application will be ignored.
除了将Git代码库下载/克隆到本地计算机,然后运行vagrant up来启动VM之外,不会告诉您要开始做什么。但是,在尝试启动虚拟机时,我当前遇到了以下错误。
λ vagrant up
Vagrant failed to initialize at a very early stage:
There was an error loading a Vagrantfile. The file being loaded
and the error message are shown below. This is usually caused by
a syntax error.
Path: C: