Thanks for the prompt answer, very nice of you.
I saw the tutorial about running NeutronIDE on 443/80 but since that
particular FreeBSD jail is serving other web services it is not an
option.
The plan is to evaluate a dev server with editor, DVCS, code review
and such and so making them work on the same host is a goal. :)
When you say websocket you mean (
http://www.websocket.org/) or just
"web sockets has connections (ip:port)", for my own education.
I'll try to look into your second solution, you seem to install
another webserver gunicorn to replace Tornado and serve DJango ,
right ?
Making NeutronIDE play nicely with other web servers would be cool
indeed, after the "playtest" stage it is the next stage for
"evaluators" like me, and having a complete remote toolset would be
great, NeutronIDE being a key piece.
Thanks a lot for your time.
On May 16, 11:05 pm, Paul Bailey <
paul.m.bai...@gmail.com> wrote:
> If you put Neutron behind Apache that will work but it is going to kill web
> sockets which will kill the web terminal. I'm pretty sure Apache has a web
> socket mod now but I have no clue how to set that up.
>
> So if you want the web terminal, the easiest thing to do is to get Neutron
> running on port 80 and 443. First make sure anything running on 443 or 80
> is stopped or uninstalled. Then do the following:
>
> 1. sudo apt-get install authbind
> 2. touch /etc/authbind/byport/80 /etc/authbind/byport/443
> 3. chmod 500 /etc/authbind/byport/80 /etc/authbind/byport/443
> 4. chown user:group /etc/authbind/byport/80 /etc/authbind/byport/443
> 5. In the file Neutron-IDE/neutron/settings_local.py put:
> HTTP_PORT = 443
> IMG_EDITOR_PORT = 80
>
> To start Neutron run: authbind --deep Neutron-IDE/neutron/neutronide.py
> start
>
> If you don't care about the terminal and just want to turn it off and still
> want to use Apache probably the easiest thing is to use a proxy.
>
> 1. Use the same settings as above but add:
> TERMINAL_ON = False
> 2. pip install gunicorn or sudo pip install gunicorn
> 3. cd Neutron-IDE/neutron
> 4. gunicorn_django --workers=1 -p /some/path/neutron.pid -t 10 -D -b
>
127.0.0.1:7777
>
> Change the port to whatever port you want to use with your proxy. And you
> only need only one worker since the IDE is not handling a lot of traffic.
>
> For both setups don't forget to turn on Celery if you want the directory
> searching capability:
>
> 1. cd Neutron-IDE/neutron
> 2. ./manage.py celeryd