https://htmx.org logo
Join Discord
Powered by
# πŸ”₯-django-htmx
  • h

    hundreds-camera-24900

    02/16/2022, 9:10 PM
    oh that's a neat app
  • h

    hundreds-camera-24900

    02/16/2022, 9:10 PM
    Mangum is new to me, I'll check that out
  • p

    polite-napkin-77631

    02/17/2022, 5:54 PM
    Hello there! πŸ™‚ I'm new here.
  • a

    adamant-exabyte-92636

    02/17/2022, 6:25 PM
    Hi and welcome @User! πŸ‘‹ Oh boy did you luck out - the django htmx part of the community contains some of the most prolific power users of htmx 😁
  • p

    polite-napkin-77631

    02/17/2022, 6:27 PM
    How exciting. I'm coming from SPA frameworks and languages like Angular, React and Elm. Worked with Django a number of years ago and recently picked it back up because of htmx and the ideas of rapid prototyping full stack applications
  • p

    plain-kangaroo-26043

    02/17/2022, 6:49 PM
    Sounds like a good suggestion, I'm running DO and it gets a bit pricey, so might be worth checking alternatives.
  • f

    fresh-controller-36545

    02/17/2022, 9:04 PM
    Hetzner scums kappa
  • f

    fresh-controller-36545

    02/17/2022, 9:05 PM
    What does it do? I never quite understood using a full blown MANIFEST etc instead of just using a
    docker-compose
    with auto-deployment via
    git pull
  • b

    bland-coat-6833

    02/17/2022, 9:12 PM
    It deploys to Heroku or Azure. Listening to the podcast he just wanted to have an abstraction layer for deployment
  • f

    fresh-controller-36545

    02/17/2022, 9:19 PM
    What's wrong with
    git pull; docker-compose down; docker-compose up --force-recreate --build
    aka
    systemctl restart snowflakeWebapp
    ?
  • f

    fresh-controller-36545

    02/17/2022, 9:22 PM
    Looking at the code I just don't feel like it's much of an abstraction but rather a bit over-engineered^^
  • p

    plain-kangaroo-26043

    02/17/2022, 9:23 PM
    Do you mean Heroku in general or this abstraction layer in particular?
  • f

    fresh-controller-36545

    02/17/2022, 9:25 PM
    The "abstraction layer" in particular. But Heroku seems quite useless to me also – now that you mention it, unless you're unwilling to spend the 3hrs it takes to learn some ops
  • b

    bland-coat-6833

    02/17/2022, 9:25 PM
    So he has written a book and felt like the deployment chapter was a little too step-by-step and Heroku-specific. Plus basically doing Heroku’s job for them. So he decided to have something that can deploy from the CLI to The Cloud ⛅️
  • f

    fresh-controller-36545

    02/17/2022, 9:27 PM
    I mean look at that backlog: https://github.com/ehmatthes/django-simple-deploy/issues/6
  • f

    fresh-controller-36545

    02/17/2022, 9:27 PM
    I see. That makes sense I guess. But why not just use
    docker-compose
    ?
  • p

    plain-kangaroo-26043

    02/17/2022, 9:29 PM
    Sure, but I guess someone using Heroku isn't just running their web server, they'll be using e.g. PgSQL buildpacks with auto backups etc. Yes you can do all of that yourself but if you're a one-person SAAS with limited time, it's not the worst thing.
  • f

    fresh-controller-36545

    02/17/2022, 9:31 PM
    What about pointing DNS to it? Surely you don't want it to be called myapp.herokuapp.com the whole time. Honestly looking at https://www.heroku.com/pricing & trying to figure out each tier you need, you might as well figure out deployment yourself lol
  • p

    plain-kangaroo-26043

    02/17/2022, 9:33 PM
    Sure, but it's not just deployment but things like managed databases. Not saying Heroku is the best solution & if you have time & skill to set it all up yourself, fine, but it's a viable solution in some cases (can get pricey though).
  • p

    plain-kangaroo-26043

    02/17/2022, 9:34 PM
    There are probably better (and cheaper) things out there these days if you want that e.g. Digital Ocean managed dbs, whatever its called in AWS etc.
  • p

    plain-kangaroo-26043

    02/17/2022, 9:35 PM
    Heroku's OK for the free tier if you want to throw something quickly over the wall for a demo, but probably render or fly.io are better nowadays.
  • f

    fresh-controller-36545

    02/17/2022, 9:37 PM
    Gotcha. Thanks for clarifying. However imo it feels like a cheap excuse people make up because they hear "Django is a pain to deploy", in order to not invest in their own human capital – especially for something I would consider quite fundamental
  • p

    plain-kangaroo-26043

    02/17/2022, 9:38 PM
    Yeah with containers Django is no harder or easier than anything else these days. To paraphrase Homer Simpson, "Docker is the answer to - and the cause of - all our problems".
  • f

    fresh-controller-36545

    02/17/2022, 9:39 PM
    kappa
  • f

    fresh-controller-36545

    02/17/2022, 9:39 PM
    Definitely true when you combine it with Kubernetes
  • b

    bland-coat-6833

    02/17/2022, 9:43 PM
    I’ve been looking at bundling a venv in a deb package then using systemd. But I’ll do a lot of work to avoid k8s
  • p

    plain-kangaroo-26043

    02/17/2022, 9:49 PM
    Crazy number of job postings I'm seeing these days with Kubernetes in there somewhere
  • p

    plain-kangaroo-26043

    02/17/2022, 9:49 PM
    "We run Kubernetes on EKS". "How much traffic do you get?" "About 200 users a day. But we need to scale!"
  • b

    bland-coat-6833

    02/17/2022, 9:49 PM
    If you’re trying k8s then you have to try tilt.dev
  • b

    bland-coat-6833

    02/17/2022, 9:50 PM
    Really reduces the reload time for changes.
1...505152...100Latest