How do I specify where the simmate DB is written to? #745
|
When I run |
Replies: 1 comment 1 reply
|
You can add this to your database:
engine: django.db.backends.sqlite3
name: '/path/to/my/example.sqlite3'Until Also, since you've hit the point of messing with your sqlite database, it might be worth switching to using postgres. You can host the postgres db wherever, as long as your python instance has internet access. For example, this is what it looks like when you connect to a postgres instance hosted on digitalocean: database:
engine: django.db.backends.postgresql
host: db-postgresql-nyc3-49797-do-user-8843535-0.b.db.ondigitalocean.com
name: defaultdb
user: doadmin
password: asd87a9sd867fasd
port: 25060
options:
sslmode: requireThe downsides to postgres are that it takes a bit to learn, and there's no "prebuilt" database for it. Meanwhile, sqlite is nice and easy to setup, but doesn't scale well. |
You can add this to your
~/simmate/settings.yamlfile:Until
v0.18.0is released, this will only work with a dev install because of a bug that I just patched #746. You were the first to try this with sqlite 🙃Also, since you've hit the point of messing with your sqlite database, it might be worth switching to using postgres. You can host the postgres db wherever, as long as your python instance has internet access. For example, this is what it looks like when you connect to a postgres instance hosted on digitalocean: