> For the complete documentation index, see [llms.txt](https://za.docs.rechtlogisch.de/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://za.docs.rechtlogisch.de/beta/setup/update.md).

# Update

{% hint style="info" %}
Currently performed manually on the test instance
{% endhint %}

{% hint style="warning" %}
Note relevant changes listed in [changelog](/beta/general/changelog.md). And perform needed changes as stated there.
{% endhint %}

## Steps

{% stepper %}
{% step %}

### Stop Apache

Open XAMPP and stop Apache. Alternatively you can stop the Apache service in `services.msc`
{% endstep %}

{% step %}

### Pull

Pull from repository

{% code title="cd C:\weric" %}

```bash
git pull
```

{% endcode %}
{% endstep %}

{% step %}

### (optional) Change environment variables in `.env`, if needed

{% hint style="info" %}
[Changelog](/beta/general/changelog.md) contains relevant infromation concerning changes.
{% endhint %}
{% endstep %}

{% step %}

### Run composer install

{% code title="cd C:\weric\api" %}

```bash
composer install
```

{% endcode %}
{% endstep %}

{% step %}

### Run database migrations

{% code title="cd C:\weric\api" %}

```bash
php artisan migrate --seed --force
```

{% endcode %}
{% endstep %}

{% step %}

### Cache config, route and views

<pre class="language-bash" data-title="cd C:\weric\api"><code class="lang-bash"><strong>php artisan optimize
</strong></code></pre>

{% endstep %}

{% step %}

### Start Apache

Open XAMPP and start Apache. Alternatively you can start the Apache service in `services.msc`
{% endstep %}
{% endstepper %}
