Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yarn error: "Command "deploy" not found." #86

Closed
jbrowning opened this issue Mar 6, 2019 · 6 comments
Closed

Yarn error: "Command "deploy" not found." #86

jbrowning opened this issue Mar 6, 2019 · 6 comments

Comments

@jbrowning
Copy link

We're currently on Phoenix 1.4 + brunch (webpack migration is currently optional) and the changes from #83 cause this error on deploy.

@jbrowning
Copy link
Author

The root issue here of course is that older default Phoenix package.json files did not contain a deploy script. We're old school. :)

@gjaldon
Copy link
Owner

gjaldon commented Mar 6, 2019

Maybe we can do a check to see if brunch or webpack is used and then run the corresponding script? For the meantime, you can add a custom compile file to override the default compile commands. You can refer here https://github.com/gjaldon/heroku-buildpack-phoenix-static#compile

@behe
Copy link
Contributor

behe commented Mar 7, 2019

Maybe just document what to put in compile if it's missing in the installation instructions?

@jaimeiniesta
Copy link

jaimeiniesta commented Mar 8, 2019

Same here, on a phoenix 1.4 app that still uses brunch:

remote: sent 60 bytes  received 19 bytes  158.00 bytes/sec
remote: total size is 0  speedup is 0.00
remote:        Running default compile
remote:        npm ERR! missing script: deploy
remote:
remote:        npm ERR! A complete log of this run can be found in:
remote:        npm ERR!     /app/.npm/_logs/2019-03-08T15_00_27_106Z-debug.log
remote:  !     Push rejected, failed to compile Phoenix app.
remote:
remote:  !     Push failed

gjaldon added a commit that referenced this issue Mar 11, 2019
@gjaldon
Copy link
Owner

gjaldon commented Mar 11, 2019

The README has been updated to explain that default compile has been changed and includes what needs to be put in compile https://github.com/gjaldon/heroku-buildpack-phoenix-static#faq

Let me know if this is good enough or needs some changes.

@jbrowning
Copy link
Author

Good enough for me.

Many thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants