Live data from Hacker News

Piku: Allows git push deployments to your own servers

github.com

141–150 of 169 posts

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

#141

I just added a magic URL in my app that GitHub calls whenever a commit is pushed and the server does `git pull` which in turn causes pm2 to reload the app. So committing anything shows up in production in seconds. Great for smaller projects.

How did you set this up? Seems simple yet effective.

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

#142
Not related to “git push” deployments, but absolutely related to the PaaS experience, the team I’m working on is previewing Cloud Native Buildpacks (CNB) which is an open spec in the CNCF for Buildpacks that target OCI.

What this means is that you can now generate a docker image locally using similar build tooling to Heroku’s “git push” logic that detects language support and does the right thing TM. Here’s a tutorial for building a Rails app with the buildpack I maintain https://www.schneems.com/2024/05/01/build-a-ruby-on-rails-ap...

Would love some feedback, if you try it. Please consider posting about the experience in the linked discussion (good, bad, indifferent, or whatever I just want more feedback to improve the experience).

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

#143
post #10
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.

A different niche than Piku but I will give Dokku another vote. I've upgraded my dokku install over 3-4 Ubuntu LTS so far and it's been problem free for my use case of hosting little side projects on a VPS.

Have you tried cloud native buildpacks? I posted a link to a tutorial on the top level.

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

#144

With PHP, 1-line (no new tools): sftp user@host remoteFile localFile Joking aside, I’m a bit surprised such a tool would be developed in Python given its dependency’s and runtime (which is not easy on the user).

You still need to install nginx, php-fpm an configure certs, so php is not that easy unfortunately.

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

#145
post #136
post #85

Maintainer and co-author here. If you like simple, minimalist deployment tools, check out https://github.com/rcarmo/ground-init for a very much down to earth take on cloud-init…

Your readme doesn't really answer the question of why not cloud-init?

You can’t use cloud-init on already installed systems.

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

#146
post #57

Earlier quoted context omitted.

> set -e > echo "Downloading piku-bootstrap here." > curl -s bootstrap" rel="nofollow">https://raw.githubusercontent.com/piku/piku-bootstrap/master... > piku-bootstrap > chmod 755 piku-bootstrap > echo "Now you can install Piku on `hostname` like this:" > echo "./piku-bootstrap install" Did you look at the script?

the script is irrelevant. it's the culture it attracts/creates when you start with this. and while i didn't look at the script for the reason above, i did look at the site and found no high level or architecture designs links. good luck basing, even your dev, infrastructure on things like this.

It's a convenience and risk assessment matter IMO. Looking at the repo I see stars in the 1000s, issues are well addressed, and of course the source is available. Lots of persons have likely gone through the code already and no flags were raised, so it's pretty low risk to use that one-liner. I'll definitely use it, as have others, as I just want to get setup and move on with minimal effort.

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

#147
post #132

interesting project! what are the advantages of this over pushing to a normal ssh server with a server side git hook?

Came to ask this same question. I have a post-receive hook on my server that instamagically deploys whenever I push to it. It is simple and awesome and is basically just a builtin git feature.

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

#150
post #126

What is a PaaS?

Platform as a Service. Which leaves me the same number of questions. So, what is Platform as a Service?

A "Service" is when someone or something does something for you, usually in return for some fee.

A "Platform," in the context of IT and software (and especially the internet), is some IT infrastructure, generally a server and the software installed on it, that you can host something on, such as an app or a website.

A "Platform as a Service" is when someone else sets up your platform for you so that you don't have to do it yourself—you get access to the platform and can use it for your own stuff, but don't have to configure or maintain most of it.

Post reply on HN