保存 Rails 应用程序的当前状态...如果进行任何不需要的更改,请重新加载
嘿伙计们..这是一个奇怪的问题,但我正在 Rails 中制作一个 Web 应用程序,并且我已经完成了大约一半的功能。现在我以前来过这里,但由于错误命名了一些模型和控制器,一切都变得混乱,所以我只是重新启动了应用程序,因为我知道我已经这样做了。
我想知道我是否可以“保存游戏”并继续...所以如果将来出现问题我可以恢复到我的应用程序的工作 1/2 方式版本。
我只是想保存一切原样,如果将来我搞砸了一些事情,我可以回到现在的位置......有什么办法可以做到这一点吗?我一直在寻找并冻结?或版本控制?但我不确定这就是我要找的。
Hey guys..this is kind of a weird question but I'm making a webapp in rails and I have about half the functionality I'd like to see completed. Now I've been here before but due to misnaming some model and controllers everything went haywire so I just restarted the app since I knew I already did.
I'm wondering if I can "save game" where I'm at now and continue on...so if mess up in the future I can revert back to a working 1/2 way version of my app.
I just want to save everything how it is and if I mess something up in future I could just go back to where I am now.....Is there any way to do this? I've been looking and freezing? or versioning? but I'm not sure it is i'm looking for.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您正在寻找的称为版本控制,通过查看您的标签,我认为您已经知道这一点。
版本控制有很多选项,但目前最受 Rails 开发人员欢迎的选项是 git。
有很多东西可以学习 git,但我最喜欢的网站是 gitready。您应该阅读分支(这是在不弄乱应用程序的情况下处理实验功能的好方法)和标签(用于标记您可以随时返回的时间点)。
我希望这有帮助!
What you're looking for is called version control and by looking at your tags I think you already know that.
There are many options for version control, but the one right now the most popular for rails developers is called git.
There's a lot of stuff out there to learn about git, but my favourite website is called gitready. You should read up on branching, which is a great way to work on experimental features without messing up your application, and tags, which are used to mark a point in time which you can always go back to.
I hope this helps!
只需使用 git 或 subversion :)
just use git or subversion :)