how to modify run-local to run as a server

17 views
Skip to first unread message

Liang

unread,
Dec 20, 2009, 3:41:01 AM12/20/09
to EtherPad Open Source Discussion
Hi All,
I followed the instruction and made it working on ubuntu 9.04 .
However, it only runs as a local server, which means I can only access
it at http://localhost:9000/. Even http://127.0.0.1:9000/ won't work!
I want to use it as a server for couple people. How should I modify
the shell script?
Thanks a lot.
Liang

K

unread,
Dec 20, 2009, 3:45:29 AM12/20/09
to EtherPad Open Source Discussion
Edit ./etc/etherpad.localdev-default.properties
set listen = 0.0.0.0:9000

On Dec 20, 1:41 pm, Liang <cail9...@gmail.com> wrote:
> Hi All,
> I followed the instruction and made it working on ubuntu 9.04 .
> However, it only runs as a local server, which means I can only access

> it athttp://localhost:9000/. Evenhttp://127.0.0.1:9000/won't work!

Liang

unread,
Dec 20, 2009, 4:35:31 AM12/20/09
to EtherPad Open Source Discussion
Hi K,
I change it from set listen = 9000 to set listen = 0.0.0.0:9000
NOT working
do I need to adjust mysql locahost ... ?

K

unread,
Dec 20, 2009, 5:52:03 AM12/20/09
to EtherPad Open Source Discussion
You need a SUPERDOMAIN to make things work. Thats why its not working
on any IP.

Follow these steps to make things work for you on your network.

1. set listen back to 9000. Keeping it at 0.0.0.0:9000 will also work.
They both are same.
2. Open ./src/etherpad/globals.js and add
- 'etherpad.liang.box': true
to var SUPERDOMAINS
3. Open /etc/hosts as root and add
x.x.x.x etherpad.liang.box
to it, where x.x.x.x is your machine's IP on your LAN

Do only step #3 on remaining machines of your LAN
if any of remaining machines run windows, you have to edit %SystemRoot%
\system32\drivers\etc\hosts file

-K

Liang

unread,
Dec 20, 2009, 10:39:34 PM12/20/09
to EtherPad Open Source Discussion
Hi K.
I tried your SUPERDOMAIN method.
But, even on the server, I cannot visit http://x.x.x.x:9000 - only
http://localhost:9000 is working in my hand

Liang

unread,
Dec 20, 2009, 10:41:32 PM12/20/09
to EtherPad Open Source Discussion
Do I have to rebuild the jar file?

Marcello Barnaba

unread,
Dec 21, 2009, 3:39:40 AM12/21/09
to EtherPad Open Source Discussion
yes, you have to :-) javascripts are obfuscated in the building
process

Liang

unread,
Dec 22, 2009, 5:30:18 PM12/22/09
to EtherPad Open Source Discussion
hi K,
It is working now.
My server has a domain name xx.yy.zz
I just modified globals.js with xx.yy.zz as a SUPERDOMAIN, edited etc/
etherpad.localdev-default.properties to listen to xx.yy.zz:9000
All good. No need to change /etc/hosts file.
Thanks
Liang

On Dec 20, 2:52 am, K <es.kart...@gmail.com> wrote:

Reply all
Reply to author
Forward
0 new messages