GithubHelp home page GithubHelp logo

Domain Subfolder about jawanndenn HOT 7 CLOSED

JayBeeDe avatar JayBeeDe commented on May 24, 2024 1
Domain Subfolder

from jawanndenn.

Comments (7)

JayBeeDe avatar JayBeeDe commented on May 24, 2024 1

Thank you @hartwork it works exactly as I wanted it to work.
I just had to add the argument in the entrypoint of the Dockerfile:
ENTRYPOINT ["/root/.local/bin/jawanndenn", "--port", "8080", "--host", "0.0.0.0", "--url-prefix", "jawanndenn"]

from jawanndenn.

hartwork avatar hartwork commented on May 24, 2024

Hi @JayBeeDe,

interesting problem. I'm up for figuring out some way to make that scenario possible. Could you share the related bits from the nginx config where the subfolder and proxy bits are happening? That would be great to have.

Thanks and best, Sebastian

from jawanndenn.

JayBeeDe avatar JayBeeDe commented on May 24, 2024

Hi,
Thank you Sebastian for your quick reply.

The nginx proxy configuration is the same one that I use for the other applications. I can give it to you this evening if you want, but I don't think it is relevant. Indeed, I don't think that url rewriting is a good solution.

What I need is to change the document root folder. To simplify the problem, by taking your screenshot from the github main page, instead of accessing the application via http://127.0.0.1:8080
jawanndenn-setup
I want to access it throw
http://127.0.0.1:8080/jawanndenn

Jibi

from jawanndenn.

hartwork avatar hartwork commented on May 24, 2024

Hi!

The scenario is clear. Part of the changes needed is easy (and done, see two commits linked below) and part is not (involving in-HTML links). I'll need a good idea for the latter or more energy than right now, first. Those static files probably need to become templates.

If I'd write jawanndenn today, it would be Django rather than bottle and that modification would be easy.
If you happen to know someone who wants to fund a re-write of jawanndenn in Django (and its ORM), please send that person my way! (update: opened #36 for that very topic by now)

Best, Sebastian

from jawanndenn.

hartwork avatar hartwork commented on May 24, 2024

@JayBeeDe I have added the missing bits to #35 now. Could you give it a spin? The command line option to look out for is called --url-prefix.

from jawanndenn.

hartwork avatar hartwork commented on May 24, 2024

I have merged #35 now. If it doesn't work as expected please comment here and we'll re-open this bug.

from jawanndenn.

hartwork avatar hartwork commented on May 24, 2024

Glad to hear, thanks for the update!

from jawanndenn.

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.