Live data from Hacker News

Piku: Allows git push deployments to your own servers

github.com

101–110 of 169 posts

Re: Piku: Allows git push deployments to your own servers

#104
post #4

This looks good, and Dokku has been very solid for me, but removing the Docker dependency means that now I'm beholden to my OS's choices. For apps that might run for years without maintenance, that's not ideal, as you'll quickly find you need a specific version of the OS for them.

Question - how can dependency hell be solved when using such a tool? It seems so elegant and I love the "it just works" attitude, and I do understand that docker can't be used everywhere due to its technical (and mental) overhead, but I love it because it allows to isolate everything, freeze everything in time so running a container 5 years for now "just works". In my humble workflow, I'm using lazydocker to manage t…

Personally I use the same approach to piku, but instead rebuild my Nixos config on push. My projects use nix flakes, so I get both something that I know will run on my server and on my local machine with the full development environment. No containers needed technically, but I use systemd nspawn to run the software in its own sandboxed namespace.

My entire server is then managed declaratively, so if I want to add a new project, it’s like 3-5 lines of Nginx config and push, that’s all. Something goes wrong? Just revert the commit.

Re: Piku: Allows git push deployments to your own servers

#106
post #56

15 years ago it was common to deploy web applications as live SVN repositories with a hidden path executing 'svn update' on manual http request. Not quite the 'push deploy', but that was the way apps were developed back in the days, and for some reason I still prefer that approach. Commit, test, and at one point manually nominate and deploy stable version.

[deleted]

Re: Piku: Allows git push deployments to your own servers

#108
post #29

Does someone know how it handles (if any) zero downtime deployments? Like, if your Python service is running in one machine on port 8080 behind nginx, how does piku switch to a fresh instance running in the same port?

Slightly off-topic, but you can do zero downtime deployments using systemd and socket activation.

[deleted]

Re: Piku: Allows git push deployments to your own servers

#109
Can it be a good replacement for Capistrano (for deploying rails applications)?

Love the focus on being lightweight

Recently I wanted to create a super basic website, and discovered it’s actually pretty hard to create something simple

And then, even if you manage to create something actually simple, you usually end up having to manage some not so simple deployment process together with hopefully some sort of version control

Ended up settling for putting plain html/css/js files in a git repo, then configuring auto deploy to GitHub Pages on merge to master (via Actions)

Post reply on HN