devel #20
5 changed files with 19 additions and 4 deletions
6
.gitignore
vendored
6
.gitignore
vendored
|
@ -28,6 +28,12 @@ chiya-*.tar
|
||||||
# Ignore assets that are produced by build tools.
|
# Ignore assets that are produced by build tools.
|
||||||
/priv/static/assets/
|
/priv/static/assets/
|
||||||
|
|
||||||
|
# Ignore processed assets
|
||||||
|
/priv/static
|
||||||
|
!/priv/static/robots.txt
|
||||||
|
!/priv/static/site.webmanifest
|
||||||
|
!/priv/static/browserconfig.xml
|
||||||
|
|
||||||
# Ignore digested assets cache.
|
# Ignore digested assets cache.
|
||||||
/priv/static/cache_manifest.json
|
/priv/static/cache_manifest.json
|
||||||
|
|
||||||
|
|
6
Makefile
Normal file
6
Makefile
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
SHELL := /bin/bash
|
||||||
|
|
||||||
|
all: build
|
||||||
|
|
||||||
|
build:
|
||||||
|
source ~/.asdf/asdf.sh && bash scripts/build.sh
|
|
@ -9,7 +9,9 @@ defmodule Chiya.Channels do
|
||||||
alias Chiya.Notes.Note
|
alias Chiya.Notes.Note
|
||||||
|
|
||||||
@preloads [:notes]
|
@preloads [:notes]
|
||||||
@public_preloads [notes: (from n in Note, where: not is_nil(n.published_at))]
|
@public_preloads [notes: (from n in Note,
|
||||||
|
where: not is_nil(n.published_at),
|
||||||
|
order_by: [desc: n.published_at])]
|
||||||
|
|
||||||
@doc """
|
@doc """
|
||||||
Returns the list of channels.
|
Returns the list of channels.
|
||||||
|
|
|
@ -13,9 +13,12 @@
|
||||||
<link phx-track-static rel="stylesheet" href={~p"/assets/app.css"} />
|
<link phx-track-static rel="stylesheet" href={~p"/assets/app.css"} />
|
||||||
<script defer phx-track-static type="text/javascript" src={~p"/assets/app.js"}>
|
<script defer phx-track-static type="text/javascript" src={~p"/assets/app.js"}>
|
||||||
</script>
|
</script>
|
||||||
|
<style><%= @settings.custom_css %></style>
|
||||||
</head>
|
</head>
|
||||||
<body class="bg-theme-background antialiased">
|
<body class="bg-theme-background antialiased">
|
||||||
<.admin_bar current_user={@current_user} />
|
<.admin_bar current_user={@current_user} />
|
||||||
<%= @inner_content %>
|
<%= @inner_content %>
|
||||||
|
|
||||||
|
<%= @settings.custom_html %>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
echo "Pulling latest changes.."
|
echo "Pulling latest changes.."
|
||||||
git pull
|
git pull origin main
|
||||||
|
|
||||||
echo "Updating mix dependencies.."
|
echo "Updating mix dependencies.."
|
||||||
mix deps.get --only prod
|
mix deps.get --only prod
|
||||||
|
@ -18,5 +18,3 @@ MIX_ENV=prod mix assets.deploy
|
||||||
echo "Generating release.."
|
echo "Generating release.."
|
||||||
MIX_ENV=prod mix release --overwrite
|
MIX_ENV=prod mix release --overwrite
|
||||||
|
|
||||||
echo "Restarting application.."
|
|
||||||
systemctl --user restart chiya
|
|
||||||
|
|
Loading…
Reference in a new issue