update assets to try to fix favicon issue
This commit is contained in:
parent
b3d1099d34
commit
280cd5bc34
4 changed files with 5 additions and 20 deletions
|
@ -43,6 +43,7 @@ I'm using a dumb & simple docker approach to deploying this now. Nothing automat
|
|||
|
||||
```shell
|
||||
# rebuild static assets:
|
||||
MIX_ENV=prod mix phx.digest.clean --all
|
||||
rm -rf ./priv/static/*
|
||||
npm --prefix assets run build
|
||||
MIX_ENV=prod mix phx.digest
|
||||
|
|
|
@ -21,27 +21,11 @@ defmodule Shift73kWeb.Endpoint do
|
|||
# You should set gzip to true if you are running phx.digest
|
||||
# when deploying your static files in production.
|
||||
#
|
||||
# file list generated by simple ls -1 assets/static/ - then copy/paste here
|
||||
# file list generated by simple ls -1 priv/static/ - then copy/paste here
|
||||
plug Plug.Static,
|
||||
at: "/",
|
||||
from: :shift73k,
|
||||
gzip: false,
|
||||
only: ~w(assets
|
||||
android-chrome-192x192.png
|
||||
android-chrome-512x512.png
|
||||
apple-touch-icon.png
|
||||
browserconfig.xml
|
||||
favicon-16x16.png
|
||||
favicon-32x32.png
|
||||
favicon.ico
|
||||
mstile-144x144.png
|
||||
mstile-150x150.png
|
||||
mstile-310x150.png
|
||||
mstile-310x310.png
|
||||
mstile-70x70.png
|
||||
robots.txt
|
||||
safari-pinned-tab.svg
|
||||
site.webmanifest)
|
||||
gzip: false
|
||||
|
||||
# For using vite.js in dev, we need to instruct Phoenix to serve files at assets/src over the usual endpoint. This is only necessary in development.
|
||||
if Mix.env() == :dev do
|
||||
|
|
2
mix.exs
2
mix.exs
|
@ -4,7 +4,7 @@ defmodule Shift73k.MixProject do
|
|||
def project do
|
||||
[
|
||||
app: :shift73k,
|
||||
version: "0.1.1",
|
||||
version: "0.1.2",
|
||||
elixir: "~> 1.12",
|
||||
elixirc_paths: elixirc_paths(Mix.env()),
|
||||
compilers: Mix.compilers(),
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue