Preparing for local demo

This commit is contained in:
Thomas FORGIONE 2015-10-13 16:29:41 +02:00
parent 72e76cc0a1
commit 0f4521e3de
3 changed files with 12 additions and 5 deletions

View File

@ -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;

View File

@ -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');

View File

@ -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