Callbacks

13 views
Skip to first unread message

jpamart

unread,
Dec 23, 2010, 3:35:28 AM12/23/10
to meteorserver
Hello

First, Thanks for the very very beautifull demonstrations.

I try to install Meteor for a school project and follow
http://meteorserver.org/installation/
I set Cherokee web server on 192.168.1.78:80 and Meteor on
192.168.1.79:80. There are in a single box (DEBIAN ARM NSLU2).

I set NAT etc. and this is my /etc/hosts :
127.0.0.1 localhost
192.168.1.78 LKGEC8FF8.example.org LKGEC8FF8
192.168.1.79 Data.LKGEC8FF8.example.org LKGEC8FF8

A demo php script is on the box :
ADDMESSAGE phpdemo fox
ADDMESSAGE phpdemo the
...
The meteord window :
Thu Jan 1 09:47:51 1970 debug New message 26730 on channel phpdemo
Thu Jan 1 09:47:52 1970 debug New message 26731 on channel phpdemo
Thu Jan 1 09:47:53 1970 debug New message 26732 on channel phpdemo
...
The installation is ok but 2 issues :

1/
A test.html with javascript doesnt't like
<script type="text/javascript" src="http:Data.LKGEC8FF8.example.org/
meteor.js"></script>
but <script type="text/javascript" src="http://192.168.1.79/
meteor.js"></script>

2/ in test.html :
function test() {alert("EVT");}
Meteor.registerEventCallback("process", test);
do not fire test() at all.

I think it's a DNS problem. I want to be sure and undestand why.
How to manage this ? I work at home.

Thanks

BR

jpamart

unread,
Jan 8, 2011, 7:20:47 AM1/8/11
to meteorserver
Hello


I answer to myself !! Yes it *was* a DNS problem !

This is my opinion : what about simply testing the meteor server with
Linux in a local net and without changing anything about the DNS
server ? (192.168.1.0 for example).

1/ We can write in the meteor server :

/etc/hosts :
server.linux.org 192.168.1.50
data.server.linux.org 192.168.1.51
(and do all the necessary for the redirection of the ports)

2/ do the same in the station with the brower

3/ you can write and run the php script as in the meteor site
and you can write a test.html :

<html>
<head>
<script type="text/javascript" src="http://data.server.linux.org/
meteor.js"></script>
</head>

<body BGCOLOR="#deda68">
<script language=javascript>
function test(data) { document.title=data; }
function heady()
{
Meteor.debugmode=true;
Meteor.hostid = '49977502705';
Meteor.host="Data."+location.hostname;
Meteor.registerEventCallback("process", test);
window.status=Meteor.Host;
Meteor.joinChannel("phpdemo",5);
Meteor.mode = 'stream';
Meteor.connect();
alert("ok");
}
</script>
METEOR
<SCRIPT language=JavasCript > heady(); </SCRIPT>
</body>
</html>

works with my firefox browser : the title changes in real time ...


On 23 déc 2010, 09:35, jpamart <jl.p...@gmail.com> wrote:
> Hello
>
> First, Thanks for the very very beautifull demonstrations.
>
> I try to install Meteor for a school project and followhttp://meteorserver.org/installation/
Reply all
Reply to author
Forward
0 new messages