One-time Admin Tasks¶
- Adding Web Analytics
- Licence Key Management
- Server-wide Announcements
- Suppress license warnings or errors
- Enabling Repository Statistics
- Enabling Server-side Merging
- Remap and Rescan Repositories
- Adding Custom Hooks
- Clearing repository cache
- Setting Repositories to Publish
- Pinging the RhodeCode Enterprise Server
Adding Web Analytics¶
If you wish to add a Google Analytics, or any other kind of tracker to your RhodeCode Enterprise instance you can add the necessary codes to the header or footer section of each instance using the following steps:
- From the RhodeCode Enterprise interface, select
- To add a tracking code to you instance, enter it in the header or footer section and select Save
Use the example templates in the drop-down menu to set up your configuration.
Licence Key Management¶
To manage your license key, go to support@rhodecode.com
. On this page you can see the license key details. If you need a new license, or have questions about your current one, contactServer-wide Announcements¶
If you need to make a server-wide announcement to all users, you can add a message to be displayed using the following steps:
- From the RhodeCode Enterprise interface, select
- To add a message that will be displayed to all users,
select Server Announcement from the drop-down menu and
change the
var message = "TYPE YOUR MESSAGE HERE";
example line. - Select Save, and you will see the message once your page refreshes.

Suppress license warnings or errors¶
In case you’re running on maximum allowed users, RhodeCode will display a warning message on pages that you’re close to the license limits. It’s often not desired to show that all the time. Here’s how you can suppress the license messages.
- From the RhodeCode Enterprise interface, select
- Select Flash message filtering from the drop-down menu.
- Select Save, and you will no longer see the license message once your page refreshes.
Markdown or RST Rendering¶
RhodeCode Enterprise can use Markdown or reStructured Text in commit message, code review messages, and inline comments. To set the default to either, select your preference from the drop-down menu on the page and select Save settings.
Enabling Repository Statistics¶
To enable repository statistics, use the following steps:
- From the RhodeCode Enterprise interface, open Edit beside the repository for which you wish to enable statistics. and select
- Check the Enable statistics box, and select Save
Enabling Server-side Merging¶
To enable server-side merging, use the following steps:
- From the RhodeCode Enterprise interface, open
- Check the Server-side merge box, and select Save Settings
If you encounter slow performance with server-side merging enabled, check the speed at which your server is performing actions. When server-side merging is enabled, the following actions occurs on the server.
- A pull request is created in the database.
- A shadow repository is created as a working environment for the pull request.
- On display, RhodeCode Enterprise checks if the pull request can be merged.
To check how fast the shadow repository creation is occurring on your server, use the following steps:
- Log into your server and create a directory in your repositories folder.
- Clone a repository that is showing slow performance and time the action.
# One option is to use the time command
$ time hg clone SOURCE_REPO TARGET
Remap and Rescan Repositories¶
You may want to Remap and rescan the repositories that RhodeCode Enterprise is managing to ensure the system is always up-to-date. This is useful after importing, deleting, or carrying out general cleaning up operations. To do this use the following steps:
- From the RhodeCode Enterprise, open
- Click Rescan Repositories
Check the additional options if needed:
- Destroy old data: Useful for purging deleted repository information from the database.
- Invalidate cache for all repositories: Use this to completely remap all repositories. Useful when importing or migrating repositories to ensure all new information is picked up.
Adding Custom Hooks¶
To add custom hooks to your instance, use the following steps:
- Open
- Add your custom hook details, you can use a file path to specify custom
hook scripts, for example:
pretxnchangegroup.example
with valuepython:/path/to/custom_hook.py:my_func_name
- Select Save
Also, see the RhodeCode Extensions section of the RhodeCode Tools guide. RhodeCode Extensions can be used to add additional hooks to your instance and comes with a number of pre-built plugins if you chose to install them.
Clearing repository cache¶
If you need to clear the cache for a particular repository, use the following steps:
- Open Edit beside the repository whose cache you wish to clear. and select
- On the repository settings page, go to the Caches tab and select Invalidate repository cache.
Changing Default Language¶
To change the default language of a RhodeCode Enterprise instance, change the language code
in the /home/user/.rccontrol/instance-id/rhodecode.ini
file. To
do this, use the following steps.
- Open the
rhodecode.ini
file and set the required language code.
## Optional Languages
## en(default), de, fr, it, ja, pl, pt, ru, zh
lang = de
- Restart the RhodeCode Enterprise instance and check that the language has been updated.
$ rccontrol restart enterprise-2
Instance "enterprise-2" successfully stopped.
Instance "enterprise-2" successfully started.

Setting Repositories to Publish¶
To automatically promote your local repositories to public after pushing to RhodeCode Enterprise, enable the Set repositories as publishing option on the page.
Note
This option is enabled by default on most RhodeCode Enterprise versions, but if upgrading from a 1.7.x version it could be disabled on upgrade due to inheriting older default settings.
Pinging the RhodeCode Enterprise Server¶
You can check the IP Address of your RhodeCode Enterprise instance using the
following URL: {instance-URL}/_admin/ping
.
$ curl https://your.rhodecode.url/_admin/ping
pong[rce-7880] => 203.0.113.23