kitsune/docs/deployments.rst

63 строки
1.5 KiB
ReStructuredText
Исходник Обычный вид История

2011-08-26 02:37:30 +04:00
===================
Kitsune Deployments
===================
This documents the current development (dev), staging, production (prod), and
Continuous Integration (CI) servers for the ``support.mozilla.com`` instance of
`Kitsune <https://github.com/mozilla/kitsune>`_.
2011-08-26 02:37:30 +04:00
This document will not detail *how* Kitsune is deployed, only why, when, and
where.
The Source
==========
All of the source code for Kitsune lives in `a single Github repo
2015-01-27 02:19:02 +03:00
<https://github.com/mozilla/kitsune>`_.
2011-08-26 02:37:30 +04:00
Branches
========
Master
------
The ``master`` branch is our main integration points. All new patches should be
2012-04-12 19:19:09 +04:00
based on the latest ``master`` (or rebased to it).
2015-01-28 00:28:45 +03:00
Pull requests are created from those branches. Pull requests may be opened at
2015-01-27 02:19:02 +03:00
any time, including before any code has been written.
2012-04-12 19:19:09 +04:00
Pull requests get reviewed.
2015-01-27 02:19:02 +03:00
Once reviewed, the branch is merged into ``master``, except in special cases
such as changes that require re-indexing. See
:ref:`Changes that involve reindexing <changes_reindexing>`.
2011-08-26 02:37:30 +04:00
2012-04-12 19:19:09 +04:00
We deploy to production from ``master``.
2011-08-26 02:37:30 +04:00
2012-04-12 19:19:09 +04:00
Dev
===
2011-08-26 02:37:30 +04:00
2015-01-27 02:19:02 +03:00
Dev is a small environment that is updated manually. We use it primarily to
2016-02-25 16:11:04 +03:00
develop infrastructure changes, like upgrading to Python 2.7.
2011-08-26 02:37:30 +04:00
2012-04-12 19:19:09 +04:00
Stage
=====
2011-08-26 02:37:30 +04:00
2012-04-12 19:19:09 +04:00
We deploy to stage anything we want to test including deployments themselves.
We deploy using the big red button. Typically we deploy to stage from master,
but we can deploy from any rev-ish thing.
2011-08-26 02:37:30 +04:00
Production
==========
2012-04-12 19:19:09 +04:00
We deploy to production from master by specified revisions. We deploy when
things are ready to go using the big red button.