var AWS = require('aws-sdk');
var express = require('express');
var bodyParser = require('body-parser');
var schedule = require('node-schedule');

AWS.config.region = process.env.REGION;

var sns = new AWS.SNS();
var snsTopic =  process.env.WEBCRON_TOPIC;
var app = express();

app.set('view engine', 'ejs');
app.use('/static', express.static(__dirname + '/static'));
//app.use(express.static('static'));
app.set('views', __dirname + '/views');
app.use(bodyParser.urlencoded({extended:false}));

app.get('/', function(req, res) {
    res.render('index', {
        static_path: 'static',
        theme: process.env.THEME || 'flatly',
        flask_debug: process.env.FLASK_DEBUG || 'false'
    });
});

var port = process.env.PORT || 8080;

var j = schedule.scheduleJob('*/10 * * * * *', function(){
    console.log('Every 10 seconds');
});

var server = app.listen(port, function () {
    console.log('Server running on port' + port + '/');
});

@@ -731,16 +731,33 @@
 %7C%7C 8080;
+%0Avar counter = 0;
 %0A%0Avar j 
@@ -843,16 +843,27 @@
 seconds'
+, counter++
 );%0A%7D);%0A%0A

test debug logs