dwyl / phoenix-chat-example

💬 The Step-by-Step Beginners Tutorial for Building, Testing & Deploying a Chat app in Phoenix 1.7 [Latest] 🚀

Home Page:https://phoenix-chat.fly.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Latest version of app does not deploy to heroku

nelsonic opened this issue · comments

https://dashboard.heroku.com/apps/phxchat/deploy/github
image

The previous version of the code had the import_config "prod.secret.exs" commented out:

# import_config "prod.secret.exs"

Should be a simple fix to get the deploy working again.

Annoyingly the latest phoenix upgrades a bunch of Node.js dependencies,
so the default version of Node v6.9.2 doesn't work:

image

😞

image

remote:        Caching node modules
remote: cp: cannot overwrite directory '/app/tmp/cache/node_modules/phoenix' with non-directory
remote: cp: cannot overwrite directory '/app/tmp/cache/node_modules/phoenix_html' with non-directory
remote:  !     Push rejected, failed to compile Phoenix app.

Fix: gjaldon/heroku-buildpack-phoenix-static#80 (comment)

Phoenix 1.5.3 version works well on Heroku: https://phxchat.herokuapp.com
image

PR #43 fixes the build.