# Moving from development to production

**URL:** https://discourse.dawarich.app/t/moving-from-development-to-production/109
**Category:** Dev and Self-hosting
**Tags:** selfhosting
**Created:** [May 5, 2026, 6:13pm UTC](https://discourse.dawarich.app/t/moving-from-development-to-production/109 "2026-05-05T18:13:17Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![tetebueno](https://discourse.dawarich.app/user_avatar/discourse.dawarich.app/tetebueno/32/100_2.png) [@tetebueno](https://discourse.dawarich.app/u/tetebueno)
#### Post date: [May 5, 2026, 6:13pm UTC](https://discourse.dawarich.app/t/moving-from-development-to-production/109/1 "2026-05-05T18:13:17Z")

</div>

Hi, trying to migrate my selfhosted instance (using `docker compose`) from 0.34.0 to 0.35.0 I started by changing `RAILS_ENV` from `development` to `production` but I’m not sure what to do with `DATABASE_NAME` variable which currently holds `dawarich_development` value; should I change it to `dawarich_production` (or remove it so it takes `dawarich_$RAILS_ENV` value), if so will data be migrated (or should I run something to migrate it)? If not, should I stick with `dawarich_development` database even though environment is now productive?

I looked for instructions regarding this in documentation, Discourse and Github issues but couldn’t find an answer. Maybe this question might help someone else.

Cheers and thanks for such a great product.

---

<div class="post-metadata">

### Author: ![tetebueno](https://discourse.dawarich.app/user_avatar/discourse.dawarich.app/tetebueno/32/100_2.png) [@tetebueno](https://discourse.dawarich.app/u/tetebueno)
#### Post date: [May 7, 2026, 2:31pm UTC](https://discourse.dawarich.app/t/moving-from-development-to-production/109/2 "2026-05-07T14:31:12Z")

</div>

Found the answer in Discord. So changed `RAILS_ENV` to `production`, changed `DATABASE_NAME` to `dawarich`. Stopped containers (all but DB one), changed database name:

```auto
$ docker exec -ti dawarich-db bash
# psql -U $POSTGRES_USER
...
> ALTER DATABASE dawarich_development RENAME TO dawarich;

```

Updated containers straight from 0.34.0 to 1.6.1 following instructions in release notes and all worked.

Cheers.
