dotfiles/backend/lib/prymn_web/controllers/page_controller.ex
Nikos Papadakis 7fe45ca94b
setup CI and a more complete installation script
Use woodpecker-ci to deploy binaries to the R2 object storage. Use
multi-target builds to deploy multiple binaries for one or more CPU
architectures.

Now the installation script lives on the root of the repo, and it is
more complete checking the machine's requirements, operating system and
cpu architecture.
2023-07-19 23:01:18 +03:00

14 lines
401 B
Elixir

defmodule PrymnWeb.PageController do
use PrymnWeb, :controller
def home(conn, _params) do
# The home page is often custom made,
# so skip the default app layout.
render(conn, :home, layout: false)
end
def install(conn, _params) do
# TODO: Check for Production vs Development download
redirect(conn, external: "https://static.prymn.net/agent/dist/get_prymn.sh")
end
end