Debug Configuration Option in Ghost config.js


Inside your config.js file, you have the ability to turn the debug flag to true or false for either development or production mode. By default, you will find debug: false. With the debug set to false the output from Ghost you get will look similar to this:

GET /ghost/ 304 62ms
GET /ghost/css/screen.css 304 2ms
GET /shared/img/user-image.png 304 3ms
GET /api/v0.1/posts/?status=all&orderBy%5B%5D=updated_at&orderBy%5B%5D=DESC 200 39ms - 13.56kb
GET /ghost/fonts/icons.woff 304 1ms
GET / 200 46ms - 3.62kb
GET /shared/vendor/jquery/jquery.js 304 4ms
GET /assets/css/screen.css 304 2ms
GET /assets/js/index.js 304 2ms
GET /assets/css/normalize.css 304 1ms
GET /assets/fonts/icons.woff 304 6ms
GET /fdaf/ 200 35ms - 3.15kb
GET /shared/vendor/jquery/jquery.js 304 5ms
GET /assets/css/screen.css 304 5ms
GET /assets/js/index.js 304 4ms
GET /assets/css/normalize.css 304 1ms
GET /assets/fonts/icons.woff 304 1ms

Ghost config.js with debug equal to false

If you flip the flag in your config.js to be debug: true your output will look like:

GET /welcome-to-ghost/ 304 57ms
GET /assets/css/screen.css 304 6ms
GET /shared/vendor/jquery/jquery.js 304 6ms
GET /assets/js/index.js 304 6ms
GET /assets/css/normalize.css 304 1ms
GET /assets/fonts/icons.woff 304 1ms
{ sql: 'select * from "posts" where "slug" = ? limit 1',
bindings: [ 'fdasfda' ],
__cid: '__cid1' }
{ sql: 'select * from "users" where "id" in (?)',
bindings: [ 1 ],
__cid: '__cid1' }
{ sql: 'select * from "users" where "id" in (?)',
bindings: [ 1 ],
__cid: '__cid1' }
{ sql: 'select "tags".*, "posts_tags"."post_id" as "_pivot_post_id", "posts_tags"."tag_id" as "_pivot_tag_id" from "tags" inner join "posts_tags" on "posts_tags"."tag_id" = "tags"."id" where "posts_tags"."post_id" in (?)',
bindings: [ 3 ],
__cid: '__cid1' }
GET /fdasfda/ 304 35ms

Ghost config.js with debug equal to true

If you are having some issue with Ghost, it is a good idea to use this debug flag to help track down exactly what is going wrong.