diff options
author | Dave Whiteland <dave@mysociety.org> | 2014-06-10 16:08:11 +0100 |
---|---|---|
committer | Dave Whiteland <dave@mysociety.org> | 2014-06-10 16:08:11 +0100 |
commit | bae62db32ea92c535c4649630f07113c47206c8c (patch) | |
tree | 243493c6276bccf1c11256ad572fd5b600196b4a /customising | |
parent | 02e9e6bb5f7fc73d30cbf8af5952be774d34cf3e (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 'customising')
-rw-r--r-- | customising/config.md | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/customising/config.md b/customising/config.md index 259ba7f00..92eaf8bb6 100644 --- a/customising/config.md +++ b/customising/config.md @@ -637,15 +637,27 @@ THEME_URLS: <a name="staging_site"><code>STAGING_SITE</code></a> </dt> <dd> - Is this a staging or development site (1) or a live (production) site (0)? - This controls whether or not the <code>rails-post-deploy</code> script - will create the file <code>config/rails_env.rb</code> file to force + Is this a + <a href="{{site.baseurl}}glossary/#staging" class="glossary">staging</a> or + <a href="{{site.baseurl}}glossary/#development" class="glossary">development</a> site? + If not, it's a live <a href="{{site.baseurl}}glossary/#development" class="glossary">production</a> + site. This setting controls whether or not the <code>rails-post-deploy</code> + script will create the file <code>config/rails_env.rb</code> file to force Rails into production environment. <div class="more-info"> - <p>Example:</p> + <p>Examples:</p> <ul class="examples"> <li> - <code>STAGING_SITE: 1</code> + For staging or development: + <p> + <code>STAGING_SITE: 1</code> + </p> + </li> + <li> + For production: + <p> + <code>STAGING_SITE: 0</code> + </p> </li> </ul> </div> |