the <aclass="reference internal"href="../Setup/Installation.html"><spanclass="doc std std-doc">Getting Started guide</span></a> and get everything running.</p>
<h2>Updating with the latest Evennia code changes<aclass="headerlink"href="#updating-with-the-latest-evennia-code-changes"title="Permalink to this headline">¶</a></h2>
<p>When you’re wanting to apply updates, simply <codeclass="docutils literal notranslate"><spanclass="pre">cd</span></code> to your cloned <codeclass="docutils literal notranslate"><spanclass="pre">evennia</span></code> root directory and type:</p>
<p>assuming you’ve got the command line client. If you’re using a graphical client, you will probably
want to navigate to the <codeclass="docutils literal notranslate"><spanclass="pre">evennia</span></code> directory and either right click and find your client’s pull
function, or use one of the menus (if applicable).</p>
<p>You will always need to do <codeclass="docutils literal notranslate"><spanclass="pre">evennia</span><spanclass="pre">reload</span></code> (or <codeclass="docutils literal notranslate"><spanclass="pre">reload</span></code> from -in-game) from your game-dir to have
the new code affect your game. If you want to be really sure you should run a full <codeclass="docutils literal notranslate"><spanclass="pre">evennia</span><spanclass="pre">reboot</span></code>
so that both Server and Portal can restart (this will disconnect everyone though, so if you know the
Portal has had no updates you don’t have to do that).</p>
<p>On occasion we update the versions of third-party libraries Evennia depend on (or we may add a new
dependency). This will be announced on the mailing list/forum. If you run into errors when starting
Evennia, always make sure you have the latest versions of everything. In some cases, like for
Django, starting the server may also give warning saying that you are using a working, but too-old
version that should not be used in production.</p>
<p>Upgrading <codeclass="docutils literal notranslate"><spanclass="pre">evennia</span></code> will automatically fetch all the latest packages that it now need. First <codeclass="docutils literal notranslate"><spanclass="pre">cd</span></code> to
your cloned <codeclass="docutils literal notranslate"><spanclass="pre">evennia</span></code> folder. Make sure your <codeclass="docutils literal notranslate"><spanclass="pre">virtualenv</span></code> is active and use</p>
<p>Remember the period (<codeclass="docutils literal notranslate"><spanclass="pre">.</span></code>) at the end - that applies the upgrade to the current location (your
<div><p>The <codeclass="docutils literal notranslate"><spanclass="pre">-e</span></code> means that we are <em>linking</em> the evennia sources rather than copying them into the
environment. This means we can most of the time just update the sources (with <codeclass="docutils literal notranslate"><spanclass="pre">git</span><spanclass="pre">pull</span></code>) and see
those changes directly applied to our installed <codeclass="docutils literal notranslate"><spanclass="pre">evennia</span></code> package. Without installing/upgrading the
package with <codeclass="docutils literal notranslate"><spanclass="pre">-e</span></code>, we would have to remember to upgrade the package every time we downloaded any new
<p>This will show you the version of all installed packages. The <codeclass="docutils literal notranslate"><spanclass="pre">evennia</span></code> package will also show the
<p>Whenever we change the database layout of Evennia upstream (such as when we add new features) you
will need to <em>migrate</em> your existing database. When this happens it will be clearly noted in the
<codeclass="docutils literal notranslate"><spanclass="pre">git</span><spanclass="pre">log</span></code> (it will say something to the effect of “Run migrations”). Database changes will also be
announced on the Evennia <aclass="reference external"href="https://groups.google.com/forum/#%21forum/evennia">mailing list</a>.</p>
<div><p>Hint: If the <codeclass="docutils literal notranslate"><spanclass="pre">evennia</span></code> command is not found, you most likely need to activate your
<p>If you run the default <codeclass="docutils literal notranslate"><spanclass="pre">SQlite3</span></code> database (to change this you need to edit your <codeclass="docutils literal notranslate"><spanclass="pre">settings.py</span></code> file),
the database is actually just a normal file in <codeclass="docutils literal notranslate"><spanclass="pre">mygame/server/</span></code> called <codeclass="docutils literal notranslate"><spanclass="pre">evennia.db3</span></code>. <em>Simply delete
that file</em> - that’s it. Now run <codeclass="docutils literal notranslate"><spanclass="pre">evennia</span><spanclass="pre">migrate</span></code> to recreate a new, fresh one.</p>
<div><p>NOTE: Under Windows OS, in order to access SQLite dbshell you need to <aclass="reference external"href="https://www.sqlite.org/download.html">download the SQLite
command-line shell program</a>. It’s a single executable file
(sqlite3.exe) that you should place in the root of either your MUD folder or Evennia’s (it’s the
you then just run <codeclass="docutils literal notranslate"><spanclass="pre">evennia</span><spanclass="pre">migrate</span></code> to be up-to-date again.</p>