Soon you’ll be able to run any Kitten app directly from a git repository. e.g.,
kitten run https://codeberg.org/aral/fetchiverse.git
35 second demo:
Soon you’ll be able to run any Kitten app directly from a git repository. e.g.,
kitten run https://codeberg.org/aral/fetchiverse.git
35 second demo:
@ff0000 Yep, that’s all it does. There is no setup apart from the clone (Kitten is very simple).
If you do it with a random repository, Kitten will still clone it and try to serve it. Just as if you ran it on a random folder on your machine.
(Basically, the run command is the little brother of the deploy command that deploys a git repository as a systemd service. The run command runs it as a regular process as you would during dev. And you can actually go to where it cloned it and dev on it.)
@aral what... that is... awesome haha! So what happens under water?
Will kitten run do a clone and all the setup before serving it on localhost (and just not showing you the steps basically)?
(also what happens when you try it with just a random repository? 🙈
@ff0000 (And given all the Small Web / peer to peer features in Kitten are enhancements on a plain old web server, you can take any static site repo, if you wanted to, and run that command to test it locally. Or run the deploy command and have a production server running it.)
@ff0000 They’re all just cloned to ~/.local/share/small-tech.org/kitten/clones (e.g., ~/.local/share/small-tech.org/kitten/clones/codeberg.org.aral.fetchiverse)
So just a quick rm -rf should do the trick ;)
(Just nuke individual folders or the clones folder entirely.)
@aral that is pretty nifty!
How would the cleanup work? If you would say run kitten run on a bunch of repositories?
@ff0000 That’s the idea ;)
(And thanks) 💕
@aral that makes it super quick and useful, to just preview something with kitten.
Nice stuff :)
@meg Thanks, Megan. 💕
@aral Oh, this is fantastic. Great work!
076萌SNS is a social network, courtesy of 076. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.
All 076萌SNS content and data are available under the Creative Commons Attribution 3.0 license.