Development/MusicBrainz Server Environment Variables: Difference between revisions

From MusicBrainz Wiki
Jump to navigationJump to search
(New page: ==Environment variables== The musicbrainz server understands the following environment variables, these may be useful during development: ===CATALYST_DEBUG=== This is the catalyst debu...)
 
(Category:Development)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:

==Environment variables==
==Environment variables==


Line 7: Line 6:


This is the catalyst debug output, it is enabled by default. You can set it to "0" if you're not interested in this data.
This is the catalyst debug output, it is enabled by default. You can set it to "0" if you're not interested in this data.



===SQL_DEBUG===
===SQL_DEBUG===


Set this to "1" to print sql queries on the console (including query times).
Set this to "1" to print sql queries on the console (including query times).



===MUSICBRAINZ_USE_TEST_DATABASE===
===MUSICBRAINZ_USE_TEST_DATABASE===
Line 19: Line 16:


$ script/setup_test_db_for_selenium.pl ; MUSICBRAINZ_USE_TEST_DATABASE=1 script/musicbrainz_server.pl -r
$ script/setup_test_db_for_selenium.pl ; MUSICBRAINZ_USE_TEST_DATABASE=1 script/musicbrainz_server.pl -r


[[Category:Development]]

Latest revision as of 08:38, 2 March 2012

Environment variables

The musicbrainz server understands the following environment variables, these may be useful during development:

CATALYST_DEBUG

This is the catalyst debug output, it is enabled by default. You can set it to "0" if you're not interested in this data.

SQL_DEBUG

Set this to "1" to print sql queries on the console (including query times).

MUSICBRAINZ_USE_TEST_DATABASE

Set this to "1" when you want to run the server against the test database, this is typically used to debug selenium tests:

 $ script/setup_test_db_for_selenium.pl ; MUSICBRAINZ_USE_TEST_DATABASE=1 script/musicbrainz_server.pl -r