本文介绍了将我的virtualenv目录放在我的git仓库里是不是很糟糕?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在考虑将virtualenv放在Django网络应用程序中,我正在使用我的应用程序的git存储库。这似乎是一个简单的方法来保持部署的简单和容易。有什么理由不该这样做吗?

I'm thinking about putting the virtualenv for a Django web app I am making inside my git repository for the app. It seems like an easy way to keep deploy's simple and easy. Is there any reason why I shouldn't do this?

我对virtualenv完全陌生,所以很有可能这是一个非常愚蠢的问题。 p>

I'm totally new to virtualenv, so there is a good chance this is a really stupid question.

推荐答案

我使用,以获取我需要的包文件,并将其添加到我的存储库。我试图想到一种为什么你想要存储整个virtualenv的方法,但是我不能。

I use pip freeze to get the packages I need into a requirements.txt file and add that to my repository. I tried to think of a way of why you would want to store the entire virtualenv, but I could not.

这篇关于将我的virtualenv目录放在我的git仓库里是不是很糟糕?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-22 11:06
查看更多