custom-database-use.rst
36 lines
| 1.2 KiB
| text/x-rst
|
RstLexer
Custom Database usage
Important
If you do change the default database that |RCS| uses, then you will need to manage and upgrade the database by yourself. |RCS| cannot perform normal operations based on an external database.
If you need to change database connection details for a |RCEE| instance, use the following steps:
- Open the :file:`rhodecode.ini` file for the instance you wish to edit. The default location is :file:`config/_shared/rhodecode.ini`
- When you open the file, find the database configuration section, and use the below example to change the connection details:
######################################################### ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ### ######################################################### # Default SQLite config sqlalchemy.db1.url = sqlite:////home/rhodecode/.rccontrol/enterprise-1/rhodecode.db # Use this example for a PostgreSQL sqlalchemy.db1.url = postgresql://postgres:secret@localhost/rhodecode # see sqlalchemy docs for other advanced settings sqlalchemy.db1.echo = false sqlalchemy.db1.pool_recycle = 3600