Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在线部署 Rails 应用程序。我现在的主人是梦想主人。虽然我不确定如何部署我的应用程序。目前我在共享服务器上,但我正在考虑升级到 VPS,但问题仍然存在!我是否需要 Git 集线器。如果我需要 git hub 将其设为私有,我必须付费还是存在替代方案。
我不确定如何部署 rails 的意思是我有一个带有 webrick 和 database.yml 设置的本地主机,否则其他一切对我来说都是黑暗的。
您可以使用 capistrano 通过 SSH 将您的应用程序部署到共享主机或 VPS。
https://help.github.com/articles/deploying-with-capistrano。
我正在尝试为上一篇文章和下一篇文章创建链接。我不使用的原因will_paginate是因为我不想使用“Previous”文本,而是希望将其作为帖子的标题(即 post.title)。
will_paginate
为此,我遵循了另一个答案,并在我的帖子模型中创建了以下关系:
def pre