共享主机尚不支持 Ruby 1.9.2 上的 Rails
有人可以提供一些建议吗?
我有一个在 Rails 3.1 和 ruby 1.9.2 下开发的应用程序的第一个修订版。直到我开始部署应用程序时,我才发现我的共享主机不支持 ruby 1.9.2(大多数共享主机似乎都是相同的)。无论如何,我尝试部署我的 Rails 3.1 应用程序,但遇到了很多问题,通常与已弃用的=>有关。句法。
我现在正试图弄清楚该怎么做,并考虑在早期版本的 Rails 下重新创建我的应用程序。
我有什么选择? 我应该降级到哪个版本的 Rails,以避免我遇到的问题?
谢谢。
Could someone offer some advice please.
I have a first revision of an application that I developed under rails 3.1 and ruby 1.9.2. It wasn't until I came to deploying the application that I discovered my shared host does not support ruby 1.9.2 (most shared hosting seems to be the same). I tried to deploy my rails 3.1 application anyway, but have encountered many problems, often to do with the deprecated => syntax.
I am now trying to figure out what to do, and am thinking of recreating my application under an earlier version of rails.
What are my options?
What version of rails should I downgrade to, to avoid the problems I have been having?
thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我会使用 RVM 安装您自己的 Ruby 1.9.2。请参阅 https://rvm.io/rvm/install/。
I would use RVM to install your own Ruby 1.9.2. See https://rvm.io/rvm/install/.
你可以试试heroku。他们有免费层,我相信 Cedar 堆栈支持 Rails 3.1
You could give heroku a try. They have a free tier and I believe the Cedar stack supports rails 3.1
部署到 Heroku 或 CloudFoundy。他们支持 ruby-1.9.2。
Deploy to Heroku or CloudFoundy. They support ruby-1.9.2.