“供应商"一词是什么意思?或“至供应商"对 Ruby on Rails 意味着什么? [英] What does the term "vendoring" or "to vendor" mean for Ruby on Rails?

查看:41
本文介绍了“供应商"一词是什么意思?或“至供应商"对 Ruby on Rails 意味着什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

示例:在测试/虚拟机上销售 Rails 应用程序"推荐的生产 Rails 供应方式是什么?"

Examples: "Vendoring Rails application at test/dummy" "What is the recommended way of vendoring Rails for production?"

推荐答案

Vendoring 是将所有 3rd 方项目(例如插件、gems 甚至 Rails)移动到 /vendor 目录中.这是一种确保将所有文件部署到与开发环境相同的生产服务器.

Vendoring is the moving of all 3rd party items such as plugins, gems and even rails into the /vendor directory. This is one method for ensuring that all files are deployed to the production server the same as the dev environment.

最好的方法是:

  rake gems:unpack

  rake rails:freeze:gems

使用 rake -T 查看 rake 任务的完整列表.

Use rake -T to see a full list of rake tasks.

这篇关于“供应商"一词是什么意思?或“至供应商"对 Ruby on Rails 意味着什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆