kapa
Gigalixir - phoenix app, assets are 404
Hi
I’ve put together my first phoenix project that got to a stage that I’d like to deploy it. I’ve chosen gigalixir as it sounds perfect. I’ve done the setup and deployed it - I can access it in the browser and it works, but all the static assets (css, images) are 404 not found.
I’ve run MIX_ENV=prod SECRET_KEY_BASE="$(mix phx.gen.secret)" mix phx.server locally to see if that works and that does. I’ve noticed that locally the assets have a hash generated as a suffix and that’s what the html has, but in the gigalixir deployed html it doesn’t have those hashes, so I assume it’s something to do with that but not sure how to proceed. Any tips are appreciated
First Post!
Fernando
Last Post!
kapa
This was it!
I had to add
https://github.com/HashNuke/heroku-buildpack-elixir
https://github.com/gjaldon/heroku-buildpack-phoenix-static
to .buildpacks and things are working now. Thanks for the help
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #elixirconf-us
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #security
- #hex










