Django: pre-deployment -


Question 1:

I'm about to deploy my first Django website and I was thinking that Which tools are recommended to collect all your dengue files?

For example, I do not need my sauce and coffeefile files, I just want compiled CSS and JS files. I also want to use the correct output settings file.

Question 2:

Do I prepare these files for deployment in my own version control store? I think the advantage is that you can easily roll back the changes?

Question 3:

Do I run my tests before collecting files or before deployment?

Shell script may be a solution but maybe a better way? I looked at Jenkins / Hudson but it seems like I'm looking at the device sitting on top of the device.

For one and two questions, I recommend using a version control system for this I am sure that you are already using any type of version control, so you can say which branch of your repository you want to deploy. And yes, this rollback makes incredibly easy. Perhaps the most popular method for Django deployment is to package your files to use git, and then use these files to deploy and run any deployment script.

Using GIT, using your local repository, your files packaging will look something like this:

  GIT archive - format = tar head | Jizip & gt; My_repo.tar.gz   

Alternatively, you can first push your changes into a gyration repository, and then clone your repository from your production server in your deployment script.

For your third question, if you use this version control method for the package of your files, make sure that when you are checking that you have checked the deployment branch is

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -