Fireplace/Configuring

From MozillaWiki
Jump to: navigation, search
Please do not edit this page unless you are on the Fireplace team. Your feedback and comments are welcomed on the discussion page.

This is a Beta Draft

Overview

Fireplace has different components that has their own set of configurations, before you make any change to any configuration file please be advised to first backup the original file so in case you fall in a trap it is easier for you to escape out.

Configuring Fireplace

Local Configuration

Fireplace's local configuration is saved under /src/media/js/settings_local.js or if the file doesn't exists you would find the file as /src/media/js/settings_local.js.dist, rename this file to settings_local.js. The only setting you will find in it is the api_url. The api_url is the network host that is queried for fireplace's data i.e. Categories, Apps, Reviews and Ratings

Suggested Change

The default api_url is set to http://chimney.paas.allizom.org, you can change it to point to flue server running on your localhost i.e. http://localhost:5000 (default flue port is 5000) or to any other server that is capable of sending the data in the prescribed format.
Note: Do not leave a trailing slash at the end of the URL.
define('settings_local', [], function() {
    return {
        api_url: 'http://localhost:5000'
    };
});

Inferno Configuration

Travis Configuration