All Projects → gauntface → webperf-monitor

gauntface / webperf-monitor

Licence: Apache-2.0 License
A cli to the pagespeed-monitor lib

Programming Languages

javascript
184084 projects - #8 most used programming language
ApacheConf
554 projects
Handlebars
879 projects
CSS
56736 projects

webperf-monitor

At the moment this is a CLI tool for stashing a pagespeed insights score for each URL retrieved from a sitemap.

You can install and run the module using the following command:

npm install webperf-monitor -g
webperfmonitor -c <Path to config file>.js

An example config file can be found in config/config.sample.js and looks like:

exports.dbURL = {
        host     : 'localhost',
        user     : '<username>',
        password : '<password>',
        port: 8889
    };
exports.dbName = 'webperfmonitor';
exports.sitemapURL = 'http://<URL of your Sitemap>';

To run this as a cron job, try creating a file in /etc/cron.daily/webperf-monitor and add the following (This is still relatively untested):

#! /bin/bash

#
#
# Run Web Perf Monitor
#
#
sudo npm cache clean
sudo npm update -g

sudo npm install webperf-monitor -g

webperfmonitor -c /code/gauntface-deploy/webperfmonitor-config.js
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].