Comments (10)
Sorry @ericmj now I realized what you meant. I figured it out and removed,
cache_static_manifest: "priv/static/manifest.json"
and it worked with Elixir buildpack only. Thank you for your help.
from heroku-buildpack-phoenix-static.
If you don't need node, is it possible you don't need this buildpack and can use just the elixir buildpack instead? This buildpack is mainly for compiling your assets.
from heroku-buildpack-phoenix-static.
Thank you for your help @ericmj I misunderstood this buildpack was necessary. Let me try Elixir buildpack only.
from heroku-buildpack-phoenix-static.
I couldn't get it work, with Elixir buildpack only. Is there additional configuration I should try? Thank you so much 🙇
from heroku-buildpack-phoenix-static.
Can you include the errors you were getting with the elixir buildpack?
On Monday, 13 June 2016, Kang-Kyu Lee [email protected] wrote:
I couldn't get it work, with Elixir buildpack only. Is there additional
configuration I should try? Thank you so much 🙇—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#25 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AATV2vdBLi4YNBW9l59XEaj_9aUB3LwYks5qLZ4FgaJpZM4IzrtT
.
Eric Meadows-Jönsson
from heroku-buildpack-phoenix-static.
I had this heroku logs
with HashNuke/heroku-buildpack-elixir
only
2016-06-14T02:13:51.491375+00:00 heroku[web.1]: State changed from crashed to starting
2016-06-14T02:13:54.636444+00:00 heroku[web.1]: Starting process with command `mix run --no-halt`
2016-06-14T02:13:57.209146+00:00 app[web.1]: 02:13:57.208 [error] Could not find static manifest at "/app/_build/prod/lib/web/priv/static/manifest.json". Run "mix phoenix.digest" after building your static files or remove the configuration from "config/prod.exs."
2016-06-14T02:14:10.537286+00:00 heroku[router]: at=error code=H20 desc="App boot timeout" method=GET path="/" host=<"APP_NAME">.herokuapp.com request_id=ec8a2388-116e-4ee9-95d2-c1a580c9e444 fwd="72.34.110.10" dyno= connect= service= status=503 bytes=
2016-06-14T02:14:54.984529+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2016-06-14T02:14:54.984583+00:00 heroku[web.1]: Stopping process with SIGKILL
2016-06-14T02:14:55.709402+00:00 heroku[web.1]: Process exited with status 137
2016-06-14T02:14:55.719334+00:00 heroku[web.1]: State changed from starting to crashed
2016-06-14T02:14:56.817325+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=<"APP_NAME">.herokuapp.com request_id=c2f4400a-c7e8-4be4-8103-abd9fff252c5 fwd="72.34.110.10" dyno= connect= service= status=503 bytes=
After removed cache_static_manifest: "priv/static/manifest.json"
line from prod.exs
, I had the heroku logs
as follows
2016-06-13T18:02:27.124073+00:00 heroku[router]: at=error code=H20 desc="App boot timeout" method=GET path="/" host=<"APP_NAME">.herokuapp.com request_id=80d5d022-de6c-4aca-92b5-c6b226aef5f6 fwd="72.34.110.10" dyno= connect= service= status=503 bytes=
2016-06-13T18:03:10.576282+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2016-06-13T18:03:10.576435+00:00 heroku[web.1]: Stopping process with SIGKILL
2016-06-13T18:03:11.693498+00:00 heroku[web.1]: Process exited with status 137
2016-06-13T18:03:11.706938+00:00 heroku[web.1]: State changed from starting to crashed
2016-06-13T18:03:13.384870+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=<"APP_NAME">.herokuapp.com request_id=202e6132-0251-4097-bcf4-24aa3a1a130b fwd="72.34.110.10" dyno= connect= service= status=503 bytes=
2016-06-13T18:03:14.417471+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=<"APP_NAME">.herokuapp.com request_id=d417e8b5-0dc9-4274-986f-3d27652cf9ef fwd="72.34.110.10" dyno= connect= service= status=503 bytes=
2016-06-13T18:10:48.895533+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=<"APP_NAME">.herokuapp.com request_id=8721c82b-4597-41d1-98e6-02cc03370b53 fwd="72.34.110.10" dyno= connect= service= status=503 bytes=
2016-06-13T18:12:36.001107+00:00 heroku[api]: Release v11 created by <"EMAIL_ADDRESS">
2016-06-13T18:12:36.196846+00:00 heroku[slug-compiler]: Slug compilation started
2016-06-13T18:12:36.196852+00:00 heroku[slug-compiler]: Slug compilation finished
2016-06-13T18:12:36.001017+00:00 heroku[api]: Deploy 2fb726c by <"EMAIL_ADDRESS">
2016-06-13T18:12:36.280076+00:00 heroku[web.1]: State changed from crashed to starting
2016-06-13T18:12:40.338008+00:00 heroku[web.1]: Starting process with command `mix phoenix.server`
2016-06-13T18:12:42.863456+00:00 app[web.1]: 18:12:42.863 [info] Running Web.Endpoint with Cowboy using http on port 15131
2016-06-13T18:12:43.012885+00:00 heroku[web.1]: State changed from starting to up
2016-06-13T18:12:44.300688+00:00 app[web.1]: 18:12:44.300 request_id=6e85e18e-74b1-42d6-9ffb-02a93d505de8 [info] Sent 200 in 285µs
2016-06-13T18:12:44.300312+00:00 app[web.1]: 18:12:44.300 request_id=6e85e18e-74b1-42d6-9ffb-02a93d505de8 [info] GET /
2016-06-13T18:12:44.148701+00:00 app[web.1]: 18:12:44.148 request_id=8bf316e9-ac65-4d6a-9a42-909fa6e0a036 [info] GET /
2016-06-13T18:12:44.213286+00:00 app[web.1]: 18:12:44.213 request_id=8bf316e9-ac65-4d6a-9a42-909fa6e0a036 [info] Sent 200 in 64ms
2016-06-13T18:12:44.191100+00:00 heroku[router]: at=info method=GET path="/" host=<"APP_NAME">.herokuapp.com request_id=8bf316e9-ac65-4d6a-9a42-909fa6e0a036 fwd="72.34.110.10" dyno=web.1 connect=0ms service=104ms status=200 bytes=2230
2016-06-13T18:12:44.279106+00:00 heroku[router]: at=info method=GET path="/" host=<"APP_NAME">.herokuapp.com request_id=6e85e18e-74b1-42d6-9ffb-02a93d505de8 fwd="72.34.110.10" dyno=web.1 connect=0ms service=2ms status=200 bytes=2230
2016-06-13T18:12:44.371593+00:00 heroku[router]: at=info method=GET path="/css/app.css" host=<"APP_NAME">.herokuapp.com request_id=64d88cc0-97ef-4a28-b5f0-36129a1bc5e0 fwd="72.34.110.10" dyno=web.1 connect=0ms service=8ms status=200 bytes=124058
2016-06-13T18:12:44.516260+00:00 heroku[router]: at=info method=GET path="/js/app.js" host=<"APP_NAME">.herokuapp.com request_id=5f665655-c306-497e-bc12-69cf4b73160d fwd="72.34.110.10" dyno=web.1 connect=0ms service=2ms status=200 bytes=413
2016-06-13T18:12:44.698982+00:00 heroku[router]: at=info method=GET path="/images/phoenix.png" host=<"APP_NAME">.herokuapp.com request_id=3afd4742-25f5-4194-a57f-7cf6224b4f20 fwd="72.34.110.10" dyno=web.1 connect=0ms service=2ms status=200 bytes=14077
2016-06-13T18:19:30.956556+00:00 app[web.1]: 18:19:30.956 request_id=e8413248-3105-4ac5-84fe-0d5e00b997c1 [info] GET /
2016-06-13T18:19:30.956924+00:00 app[web.1]: 18:19:30.956 request_id=e8413248-3105-4ac5-84fe-0d5e00b997c1 [info] Sent 200 in 270µs
2016-06-13T18:19:30.933517+00:00 heroku[router]: at=info method=GET path="/" host=<"APP_NAME">.herokuapp.com request_id=e8413248-3105-4ac5-84fe-0d5e00b997c1 fwd="72.34.110.10" dyno=web.1 connect=0ms service=2ms status=200 bytes=2230
2016-06-13T18:19:31.021378+00:00 heroku[router]: at=info method=GET path="/css/app.css" host=<"APP_NAME">.herokuapp.com request_id=88485e63-d6b9-4bdd-b442-3d827e7a3533 fwd="72.34.110.10" dyno=web.1 connect=0ms service=1ms status=304 bytes=158
2016-06-13T18:19:31.114537+00:00 heroku[router]: at=info method=GET path="/images/phoenix.png" host=<"APP_NAME">.herokuapp.com request_id=4e41eac5-9b29-457d-be1b-587a42f985d3 fwd="72.34.110.10" dyno=web.1 connect=0ms service=1ms status=304 bytes=158
2016-06-13T18:19:31.150208+00:00 heroku[router]: at=info method=GET path="/js/app.js" host=<"APP_NAME">.herokuapp.com request_id=85e1cc3b-4cc9-40b5-b851-940e3ed7bfdf fwd="72.34.110.10" dyno=web.1 connect=0ms service=1ms status=304 bytes=158
2016-06-13T18:53:09.380428+00:00 heroku[web.1]: Idling
2016-06-13T18:53:09.380428+00:00 heroku[web.1]: State changed from up to down
2016-06-13T18:53:12.491300+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2016-06-13T18:53:14.258014+00:00 heroku[web.1]: Process exited with status 143
2016-06-14T01:59:02.104692+00:00 heroku[api]: Release v12 created by <"EMAIL_ADDRESS">
2016-06-14T01:59:02.314948+00:00 heroku[slug-compiler]: Slug compilation finished
2016-06-14T01:59:02.314939+00:00 heroku[slug-compiler]: Slug compilation started
2016-06-14T01:59:02.104551+00:00 heroku[api]: Deploy 0c2bf22 by <"EMAIL_ADDRESS">
2016-06-14T01:59:02.777573+00:00 heroku[web.1]: State changed from down to starting
2016-06-14T01:59:06.618334+00:00 heroku[web.1]: Starting process with command `mix run --no-halt`
2016-06-14T02:00:07.340801+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2016-06-14T02:00:07.341000+00:00 heroku[web.1]: Stopping process with SIGKILL
2016-06-14T02:00:08.537630+00:00 heroku[web.1]: State changed from starting to crashed
2016-06-14T02:00:08.539450+00:00 heroku[web.1]: State changed from crashed to starting
2016-06-14T02:00:08.532307+00:00 heroku[web.1]: Process exited with status 137
2016-06-14T02:00:11.829604+00:00 heroku[web.1]: Starting process with command `mix run --no-halt`
2016-06-14T02:01:11.001223+00:00 heroku[router]: at=error code=H20 desc="App boot timeout" method=GET path="/" host=<"APP_NAME">.herokuapp.com request_id=46878bd8-9046-4b39-9b66-3a9700d91458 fwd="72.34.110.10" dyno= connect= service= status=503 bytes=
2016-06-14T02:01:11.856798+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2016-06-14T02:01:11.856886+00:00 heroku[web.1]: Stopping process with SIGKILL
2016-06-14T02:01:12.642603+00:00 heroku[web.1]: Process exited with status 137
2016-06-14T02:01:12.657032+00:00 heroku[web.1]: State changed from starting to crashed
2016-06-14T02:01:13.937143+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=<"APP_NAME">.herokuapp.com request_id=279370e2-cab3-4c32-ab65-d0d7858bc1ba fwd="72.34.110.10" dyno= connect= service= status=503 bytes=
And then, when tried after heroku buildpacks:add https://github.com/gjaldon/phoenix-static-buildpack
it worked, no more "Application Error"
from heroku-buildpack-phoenix-static.
Heroku is unable to connect to your app over the specified port. It means
your app failed to start or is starting on the wrong port. Did you follow
the Phoenix heroku guides, but skipped the part about the Phoenix buildpack?
http://www.phoenixframework.org/docs/heroku
Eric Meadows-Jönsson
from heroku-buildpack-phoenix-static.
@kangkyu I'm closing this since it's not related to this project. Feel free to comment here though if you need any more help.
from heroku-buildpack-phoenix-static.
- deploy a Phoenix app to Heroku
- do not install node
I had these two goals, and thought there should be a simple way to do both, because Phoenix has no brunch
option. Maybe this part is not beginner-friendly yet, as I thought. Thank you @gjaldon
from heroku-buildpack-phoenix-static.
It is very easy, do not use this buildpack if you don't need anything from it. The error you are getting above is unrelated to this project. I was trying to help you debug it but you never responded.
from heroku-buildpack-phoenix-static.
Related Issues (20)
- Build is failing with NPM_TOKEN issue HOT 2
- My build just failed on phoenix.digest vs phx.digest HOT 1
- The build is failing if there is a .yarnrc with --cwd at the root HOT 1
- Support the new Cloud Native Buildpack (CNB) format.
- Files are compiled on startup
- New versions of node break the build HOT 17
- Remove default node_version
- Support for Yarn 2?
- Update heroku commands
- ngrok Error: certificate has expired HOT 3
- question about deployment to heroku with waypoint
- nodebin.herokai.com not resolving HOT 1
- Yarn error: "Command "deploy" not found." HOT 6
- Setup test suite and CI
- Heroku Build Fails HOT 2
- heroku build fails when node patch not specified HOT 4
- Improve error message below Phoenix 1.4?
- Is it possible to skip audit when building? HOT 3
- Is it possible to cache digested Phoenix output? HOT 4
- Installs an ancient version of yarn by default HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from heroku-buildpack-phoenix-static.