Skip to content

javisantana/jstrack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

javascript error tracking server

This is a small webapp to track the errors thrown in your javascript apps

install

  • First edit track_settings.py file and change SITE_CODE var to one you like. Keep it secret.

  • First deploy this djando app in your server. You can do it in heroku (see heroku setup)

  • add the next tracking code in your aplication:

    (function() {
        var SERVER = 'http://yourserver.com';
        var s = document.createElement('script');
        s.type='text/javascript';
        s.async=true;
        s.src = SERVER + '/js/error_track.js?s=' + encodeURI(SERVER);
        (document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(s);
    })();

heroku setup

  • install heroku gem

    $ gem install heroku

  • create the app:

    $ heroku create --stack cedar

  • push

    $ git push heroku master

  • create database

    $ heroku run python app/manage.py syncdb

don't forget to change variable SERVER in the tracker snippet to the url that heroku provides you

that's all, enjoy

About

javascript error tracking

Resources

Stars

6 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors