Git Product home page Git Product logo

Comments (7)

mvanderberg avatar mvanderberg commented on May 29, 2024

Hi,

Is the following post related to your issue?

[Req] urlbase/web_root/http_root ability:
#27

from maraschino.

afterburn188 avatar afterburn188 commented on May 29, 2024

Looks like it's a similar issue

from maraschino.

N3MIS15 avatar N3MIS15 commented on May 29, 2024

url_for can still be used/replaced in all the html templates and python thats not a big deal.. The problem is all the hard coded linking in the jquery and less files. I have no idea how to get around that other than inline styling and scripting which i highly doubt will happen.

from maraschino.

gugahoi avatar gugahoi commented on May 29, 2024

It's been a long time coming but i just merged this functionality. Please have a play around with it and report back with any feedback. Note that to run on port 80 you will need to grant Maraschino 'sudo' privileges.

from maraschino.

LordGaav avatar LordGaav commented on May 29, 2024

I've tried the new --webroot argument for Maraschino, but it seems that something is wrong with the way the less files pick it up. I see that a webroot.less file is created, but the contents seem to be wrong. I had to apply the following change before it would work for me. After that it is fine. If this change is correct, I will create a pull request for you to apply it.

index 4434cda..cf1d67b 100644
--- a/maraschino/__init__.py
+++ b/maraschino/__init__.py
@@ -120,7 +120,7 @@ def initialize():
         # Set up webroot for .less
         less_webroot = os.path.join(RUNDIR, 'static/less/webroot.less')
         f = open(less_webroot, 'w')
-        f.write('@webroot: "http://127.0.0.1:%i%s";' % (PORT, WEBROOT))
+        f.write('@webroot: "../../../%s";' % (WEBROOT))
         f.close()

         # Set up the updater

from maraschino.

LordGaav avatar LordGaav commented on May 29, 2024

I just noticed the seperate webroot_relative branch, and those changes seem to work properly for me.

from maraschino.

N3MIS15 avatar N3MIS15 commented on May 29, 2024

cool, i was just about to point you to that branch :)

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.