Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Greg's approach very adequately and precisely answers your question.</p> <p>Let me make an addition that takes into account what I infer to be your high-level objectives:</p> <ul> <li>Don't release local data to the wild</li> <li>Release a clean version into the wild</li> </ul> <p>The simplest (and in my experience, best attested) way to accomplish this is to use the following structure:</p> <h2>Versioned</h2> <pre><code>./application.code ./config.code ./config.local.code.sample ./.gitignore </code></pre> <p><strong>application.code</strong></p> <pre><code>include('./config.code') if is_file('./config.local.code') include('./config.local.code') end </code></pre> <p><strong>config.code</strong></p> <pre><code>username = 'root' password = 'password' </code></pre> <p><strong>config.local.code.sample</strong></p> <pre><code>username = 'replace with your local username and rename file to config.local.code' password = 'replace with your local password and rename file to config.local.code' </code></pre> <p><strong>.gitignore</strong></p> <pre><code>config.local.code </code></pre> <h2>Unversioned (optionally)</h2> <pre><code>./config.local.code # will not be picked up by git due to .gitignore </code></pre> <p><strong>config.local.code</strong></p> <pre><code>username = 'Suan' password = 'myownpass' </code></pre> <h1>Result</h1> <p>As you can see, you avoid releasing <code>config.local.code</code>, which actually contains your sensitive information, into the wild. The default configuration (cloned straight from a remote) will work for a reasonable, if rare, case where username <code>root</code> and a password <code>password</code> is valid. And the aptly named <code>config.local.code.sample</code> provides local customization instructions.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload