How do I host code on the freedom box?

Hey I am looking to host some code on my freedom box. It will be calling multiple APIs constantly.

Just wanted to know if there are any apps that assist in hosting code or get pointed the right direction on how to go about doing it?

I am not very adept with networks so trying to find a simple enough solution.

Thanks :slight_smile:

You are not looking for Gitweb, are you?
https://wiki.debian.org/FreedomBox/Manual#FreedomBox.2FManual.2FGitWeb.GitWeb_.28Simple_Git_Hosting.29

Hi axell.

That depends on what you are trying to achieve. Can you explain a bit more, please?

As for simply storing code on the FB, @Dietmar has already pointed out the GitWeb app for hosting core repositories. If, OTOH you want to run code, there may be various options. In the end, your FB is simply a Debian-based linux server that can do (almost) anything a regular Linux server can do.

Two very general suggestions:

  • Open an SSH shell and run your code in a screen or tmux session so it does not get terminated when the SSH connection is lost.
  • Use out-of-the-box FB Apps or Debian packages if this already covers your needs.
  • Set up a systemd service on your FB to run and supervise your process and start it automatically when the FB get (re-)booted, e. g. after a system upgrade.

Cheers + HTH,
Axel