aboutsummaryrefslogtreecommitdiffstats
path: root/glossary.md
diff options
context:
space:
mode:
authorDave Whiteland <dave@mysociety.org>2014-06-10 16:08:11 +0100
committerDave Whiteland <dave@mysociety.org>2014-06-10 16:08:11 +0100
commitbae62db32ea92c535c4649630f07113c47206c8c (patch)
tree243493c6276bccf1c11256ad572fd5b600196b4a /glossary.md
parent02e9e6bb5f7fc73d30cbf8af5952be774d34cf3e (diff)
add setting STAGING_SITE to dev/staging/production defs
this sets the production environment in Rails, nice to have this documented now :-)
Diffstat (limited to 'glossary.md')
-rw-r--r--glossary.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/glossary.md b/glossary.md
index e65586427..dbe6b8f71 100644
--- a/glossary.md
+++ b/glossary.md
@@ -121,6 +121,11 @@ Definitions
users actually visit running with live data, or a
<a href="#staging" class="glossary">staging server</a>,
which is used for testing code before it goes live.
+ <p>
+ On your dev server, you should set
+ <code><a href="{{site.baseurl}}customising/config/#staging_site">STAGING_SITE</a></code>
+ to <code>1</code>.
+ </p>
</dd>
<dt>
@@ -232,6 +237,10 @@ Definitions
<p>
Your production site should be configured to run as efficiently as possible: for
example, caching is enabled, and debugging switched off.
+ <a href="#rails" class="glossary">Rails</a> has a "production mode" which does
+ this for you: set
+ <code><a href="{{site.baseurl}}customising/config/#staging_site">STAGING_SITE</a></code>
+ to <code>0</code>.
<p>
If you have a staging server, the system environment of your staging and
production servers should be identical.
@@ -338,6 +347,11 @@ Definitions
<a href="#production" class="glossary">production server</a>, which is the
site your users visit running with live data.
<p>
+ On your staging server, you should set
+ <code><a href="{{site.baseurl}}customising/config/#staging_site">STAGING_SITE</a></code>
+ to <code>1</code>.
+ </p>
+ <p>
If you have a staging server, the system environment of your staging and
production servers should be identical.
</p>