人们,
我是 ROR 的新手,不是全新的(不再),但对将应用程序转移到生产环境没有经验。为了了解迁移到生产流程的工作原理,我创建了一个非常简单的 rails 项目。以下是关于我的系统的一些基本信息(在 Windows 7 上运行):
Ruby version 1.9.3 (i386-mingw32)
RubyGems version 1.8.24
Rack version 1.4
Rails version 3.2.8
JavaScript Runtime JScript
Active Record version 3.2.8
Action Pack version 3.2.8
Active Resource version 3.2.8
Action Mailer version 3.2.8
Active Support version 3.2.8
Application root C:/Sites/railstest
Environment development
Database adapter sqlite3
Database schema version 0
中间件:
ActionDispatch::Static
Rack::Lock
#<ActiveSupport::Cache::Strategy::LocalCache::Middleware:0x2a70f20>
Rack::Runtime
Rack::MethodOverride
ActionDispatch::RequestId
Rails::Rack::Logger
ActionDispatch::ShowExceptions
ActionDispatch::DebugExceptions
ActionDispatch::RemoteIp
ActionDispatch::Reloader
ActionDispatch::Callbacks
ActiveRecord::ConnectionAdapters::ConnectionManagement
ActiveRecord::QueryCache
ActionDispatch::Cookies
ActionDispatch::Session::CookieStore
ActionDispatch::Flash
ActionDispatch::ParamsParser
ActionDispatch::Head
Rack::ConditionalGet
Rack::ETag
ActionDispatch::BestStandardsSupport
我的虚拟主机是网络主机。
这就是我所做的:
- 使用以下命令生成一个名为 railstest 的新 Rails 应用程序: rails new railstest
- 用我的虚拟主机上使用的版本更新了 gemfile
- 运行“bundle install --deployment”以在供应商目录中拥有所有 gem。
- 将所有内容通过 FTP 传输到虚拟主机
- 通过 PuTTY 成功运行捆绑安装
但是当我打电话给该网站时,我总是会得到这样的信息:http: //www.kernification.de/rails/info/properties (我没有足够的声誉在这里发布图片......)
我已经尝试了更多(我现在正在为这个问题争取大约 1.5 周),但它似乎一直都是同一个问题。网络主机支持告诉我 gem 位于 1.9.1,而不是 1.8,我对此有一些疑问:
- 1.9.1(或1.8)的版本是什么?红宝石?宝石?
- 我如何强制在 1.9.1 而不是 1.8 中寻找宝石?
我也尝试使用 pik 作为版本管理器,但到目前为止我只会使用 webhostone,所以如果我安装了一个可以工作的 ruby 版本,我会很高兴。到目前为止,我不需要在任何版本之间切换。我也搬到了 xubuntu,在那里创建了同样简单的应用程序,同样的结果。
如果能分享一下经验就更好了,万分感谢!