Recommended maintenance for searchcode server

Generally searchcode server once installed looks after itself. However a few things are recommended to ensure that you can rebuild your deployement quickly and to identify any issues that may have cropped up.

1. Have an automated method of deploying searchcode server. Deployment as such can be done in an automated method using Puppet, Fabric, Chef, Ansible or otherwise. Keep an automated backup of the searchcode.sqlite and searchcode.properties files. When rebuilding searchcode copy both into the searchcode install directory and searchcode will analyse the code and rebuild the index. This process will take longer for setups that contain many or large repositories. If faster restores are required then you can restore the index and repo directories as well.

2. Check the error logs for warning or severe errors. You can do this by logging into the searchcode interface or by grepping the searchcode server log files as configured through the searchcode.properties file.

3. Upgrades. Be sure to check for upgrades (you can do this in the admin console by clicking "(check if latest version)". Upgrades usually include a variety of bug fixes and feature enhancements. Upgrading is usually best done by a clean install and merging of the searchcode.sqlite and searchcode.properties files.

4. Rebuild the index. While not required it is useful to rebuild the full index in searchcode occasionally. It will improve performance and expidite the resolution of any issues which can occur through the indexing process. This can be done through the API or the Admin screens by clicking "Recrawl & Rebuild Indexes".

Productivity through code search.

Try searchcode server for Free