Preparing for local demo
This commit is contained in:
parent
72e76cc0a1
commit
0f4521e3de
|
@ -2,6 +2,7 @@ var http = require('http');
|
|||
var express = require('express');
|
||||
var jade = require('jade');
|
||||
var pg = require('pg');
|
||||
var ip = require('ip');
|
||||
|
||||
var favicon = require('serve-favicon');
|
||||
|
||||
|
@ -104,7 +105,7 @@ app.use(function(req, res) {
|
|||
var serverPort, serverIpAddress;
|
||||
if ( isDev ) {
|
||||
serverPort = 4000;
|
||||
serverIpAddress = 'localhost';
|
||||
serverIpAddress = ip.address();
|
||||
} else {
|
||||
// Openhift conf
|
||||
serverPort = process.env.OPENSHIFT_NODEJS_PORT || 8080;
|
||||
|
|
|
@ -44,9 +44,15 @@ function addLevel(i) {
|
|||
// }, true);
|
||||
|
||||
this.thenOpen(baseUrl + 'prototype/tutorial');
|
||||
this.thenOpen(baseUrl + 'prototype/play');
|
||||
this.thenOpen(baseUrl + 'prototype/play');
|
||||
this.thenOpen(baseUrl + 'prototype/play');
|
||||
this.wait(1000, function() {
|
||||
this.thenOpen(baseUrl + 'prototype/play');
|
||||
this.wait(1000, function() {
|
||||
this.thenOpen(baseUrl + 'prototype/play');
|
||||
this.wait(1000, function() {
|
||||
this.thenOpen(baseUrl + 'prototype/play');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
this.thenOpen(baseUrl + 'logout');
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/bash
|
||||
rm -f cookies*
|
||||
for i in `seq 1 8`; do
|
||||
for i in `seq 1 30`; do
|
||||
casperjs load.js --cookies-file=cookies"$i".txt&
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue