Code Monkey home page Code Monkey logo

Comments (13)

N3MIS15 avatar N3MIS15 commented on May 25, 2024

sorry for my ignorance. but how is this useful?

from maraschino.

djmixman avatar djmixman commented on May 25, 2024

It allows you to specify which ip address to bind to, on my server I have about 16 IP's and I would rather not have all of them bond to maraschino. It would also allow running on port 80 on its own IP.

from maraschino.

N3MIS15 avatar N3MIS15 commented on May 25, 2024

ok. i could probly put something together, but im not sure if i would be able to test it :(

If i put together a branch. would you be able to test for me?

from maraschino.

djmixman avatar djmixman commented on May 25, 2024

will do.. I already made a nasty hack to get it to work.. I'm not any good at git otherwise i'd whip up something for you.. But what I changed is this:

in init.py:

    SERVER = wsgiserver.CherryPyWSGIServer(('172.16.1.105', PORT), d)

SERVER = wsgiserver.CherryPyWSGIServer(('0.0.0.0', PORT), d)

From the looks of it, just make '0.0.0.0' a variable like you did with PORT.. and set the default (if no command line switch is found) to 0.0.0.0

from maraschino.

N3MIS15 avatar N3MIS15 commented on May 25, 2024

yep. will have something ready in a few minutes

from maraschino.

djmixman avatar djmixman commented on May 25, 2024

ok cool.. i'll test it out when its ready..

btw, apparently the coding I pasted above contained some kind of char's to make it all big and bold.. :P Must of been the # sign..

from maraschino.

N3MIS15 avatar N3MIS15 commented on May 25, 2024

https://github.com/N3MIS15/maraschino/tree/force_host

use Maraschino.py --host 192.168.1.123 --port 1234

and can u please also test with --develop and make sure its all working in development mode. (webroot does not work in development mode yet)

i tried with my local ip and it seemed to work (127.0.0.1 no longer worked)

from maraschino.

djmixman avatar djmixman commented on May 25, 2024

Giving it a shot now.. standby :)

from maraschino.

N3MIS15 avatar N3MIS15 commented on May 25, 2024

git clone https://github.com/N3MIS15/maraschino.git

git checkout force_host

:)

from maraschino.

djmixman avatar djmixman commented on May 25, 2024

ya I got it figured out.. I was using the mrkipling username :) cloning right now..

from maraschino.

djmixman avatar djmixman commented on May 25, 2024

Works like a charm! Thanks =D / Both --develop and no --develop work.. also, default of 0.0.0.0 works

from maraschino.

N3MIS15 avatar N3MIS15 commented on May 25, 2024

ok, sweet. I will send a pull request for master.

from maraschino.

N3MIS15 avatar N3MIS15 commented on May 25, 2024

its now in master :)

from maraschino.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.