现有应用程序中的 Spree 电子商务

发布于 2024-08-07 22:08:07 字数 327 浏览 4 评论 0原文

我正在尝试在我的应用程序中设置 Spree(我愿意使用 Gem 或在供应商模式下运行它)。

我已经查看了文档和 wiki,但对于它如何在我现有的应用程序中工作仍然有点困惑。我可以为 Spree 使用单独的数据库并自定义我的应用程序以在数据库之间传递数据,但 Spree 如何在我的应用程序中运行?

我已经从 Spree 邮件列表中看到了有关将我现有的应用程序移动为 Spree 中的扩展程序运行的建议,但将我的大型应用程序转换为在我的一小部分程序中运行/作为我的一小部分的扩展程序运行似乎并不是最佳选择。整体应用。

有没有人弄清楚这一点?如何在现有的 Rails 应用程序中运行 Spree?

I'm trying to setup Spree within my application (I'm open to using the Gem or running it in vendor mode).

I've reviewed the documentation and the wiki and I'm still a bit confused as to how it might work within my existing application. I have no problem using a separate database for Spree and customizing my application to pass data between my databases, but how does Spree run within my application?

I've seen suggestions from the Spree Mailing List about moving my existing application to run as an extension within Spree, but it doesn't seem to be optimal to convert my large application to run within/as an extension of a small part of my overall application.

Has anyone figured this out? How to run Spree within an existing Rails app?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

赠佳期 2024-08-14 22:08:07

在 Spree 中将应用程序作为扩展运行可能确实会更好。

Spree 本身就是一个相当大的应用程序,并且按照处理扩展的方式(覆盖核心文件的单独目录树),以任何其他方式处理此问题似乎有点倒退。

如果您需要对 Spree 进行任何外观更改(当然您也有这种需要),通常可以通过将原始文件复制到您的扩展程序并在其中进行更改来处理这些更改。如果您的应用程序中包含 Spree,那么整个过程可能会变得有点混乱。

由于 Spree 扩展的独立目录树性质,它确实非常适合将应用程序作为扩展。我确信这不会那么简单,但主要是将您的应用程序放入扩展目录并运行测试等。

无论如何,Spree 是一个相当大的应用程序。即使不用担心集成另一个应用程序,有时也会感到不知所措。由于其代码库相对不成熟,我无法想象任何类型的集成都会很有趣。

但无论如何,您很可能已经做出了决定,但无论如何,祝您好运!

You really are probably better off running your application as an extension in Spree.

Spree is quite the large application itself, and with the way extensions are handled (separate directory trees that override core files) it would seem kind of backwards to handle this any other way.

If you needed to make any cosmetic changes to Spree (and you would have that need, of course), they would typically be handled by copying over the original file(s) to your extension and making the changes there. If you had Spree contained within your app, that whole process could become a little muddy.

Due to the separate directory tree nature of Spree extensions, it really lends itself well to having applications as extensions. I'm sure it wouldn't be that simple, but it would mostly just be a matter of dropping your app into an extension directory and running your tests, etc.

Spree is quite a large application, anyway. Even without the worry of integrating another app it can sometimes feel overwhelming. And with its relatively immature codebase, I can't imagine integration of any kind would be fun.

But anyway, there's a good chance you've already made the decision but good luck anyway!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文