Closed NullVoxPopuli closed 5 years ago
I have the same use case
if you're not using assets then consider not using this buildpack and instead manually put phoenix.js into priv/ or not even that depending on your use case
I got this working on my fork
On Wed, May 10, 2017, 6:02 PM Aregbede Ayomide notifications@github.com wrote:
I have the same use case
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gjaldon/heroku-buildpack-phoenix-static/issues/62#issuecomment-300625835, or mute the thread https://github.com/notifications/unsubscribe-auth/AAMJarr8_lsg6MDjt5aEKEhKks1uhwywks5r4jPogaJpZM4NS9zy .
The purpose of this buildpack is to compile static assets. If you do not need that functionality, you do not need this buildpack. See also the FAQ in the README of this repo:
This buildpack is only necessary when you need to compile static assets during deploys. You will not need this buildpack if you are using Phoenix only as a REST API.
@jeremyjh even websockets?
I'm assuming if you have a channels only app, that means your client javascript is served by a different webserver or CDN. That build process should bring in all your javascript dependencies. Otherwise, you actually are serving assets from your Phoenix project but if you do need to serve only phoenix.js then wojtechmach's suggestion makes the most sense.
Excellent! Thanks, I'll try removing this buirdpack :)
On Mon., 17 Sep. 2018, 8:29 am Jeremy Huffman, notifications@github.com wrote:
I'm assuming if you have a channels only app, that means your client javascript is served by a different webserver or CDN. That build process should bring in all your javascript dependencies. Otherwise, you actually are serving assets from your Phoenix project but if you do need to serve only phoenix.js then wojtechmach's suggestion makes the most sense.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gjaldon/heroku-buildpack-phoenix-static/issues/62#issuecomment-422016358, or mute the thread https://github.com/notifications/unsubscribe-auth/AAMJasqJrxD689UQwhhAcVm2ncGxQtswks5ub6PLgaJpZM4NS9zy .
That's right. If your Phoenix app doesn't serve any static assets, then this buildpack is not needed.
I have a socket/channel only app, so I don't have any sockets. Currently, when I try to deploy, I get the following error:
here is my phoenix_static_buildpack.config