JavaScript is not currently enabled, but is required for full CodeSonar manual search and browse functionality.
If you are viewing this file in your hub's Web GUI, enable JavaScript in your browser: you will also need it for GUI functionality.
If you opened this file directly from disk, your browser may be directly suppressing JavaScript functionality: certain browsers perform this suppression on local files (but not files delivered by web servers) for security reasons.
| CodeSonar® 9.0p0 Hot Tips | CONFIDENTIAL | CodeSecure Inc |
CodeSonar uses PostgreSQL binaries that come with CodeSonar to automatically perform all actions associated with starting, running, and stopping the hub database. These include the actions needed to create, configure, administer, upgrade, start, and stop the database. The use of a database cluster that is not managed by the hub in this fashion is neither supported nor recommended.
If you wish to distribute the resource costs of the hub server and the hub database across multiple machines, we recommend that you use one or more satellite hubs: this allows users to access the web servers on the satellite hubs while the hub database runs on the primary hub, and is managed entirely by CodeSonar. If you experience difficulties with this approach, or are not certain it will satisfy your needs, contact CodeSecure support for assistance.
If do you wish to experiment with the unsupported use of your own PostgreSQL database in place of the CodeSonar hub database, this page provides an outline of the process.
If you want to use satellite hubs to distribute the resource costs of the hub server and the hub database across multiple machines, see the instructions in FAQ: How can I run my hub server and hub database on separate machines?. The remainder of this page does not apply.
To replace the hub database with your own PostgreSQL database, follow the steps below.
SQLALCHEMY_DATABASE_URL = 'postgres://%(HUB_PGADDRESS)s/cshub'
To change to a different database, you will need to change this definition to a URL (as a string) that reflects the database location. If your database runs as a daemon, you will need to specify the network address at which that daemon runs.
| SQLAlchemy manual link | Database Urls |
|---|
Where necessary, make corresponding changes in the postgresql.conf file for your database.