0
votes

[resolved]

Hi people,

I've just started learning Phoenix framework for Elixir, and whem I'm accessing the phoenix http://0.0.0.0:4000 (localhost:4000), the page is loading without the CSS.

A part from that, everything is running as expected.

Does anyone knows how to fix this?

my OS: Distributor ID: Ubuntu Description: Ubuntu 16.04.5 LTS Release: 16.04 Codename: xenial

My Elixir version: Erlang/OTP 21 [erts-10.1] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [hipe] Elixir 1.7.3 (compiled with Erlang/OTP 20)

thanks

1
How did to create this project? Did you include brunch support (default)? Are you getting any errors during the build stage for your assets?Justin Wood
This is what I am getting when running mix phoenix.server [error] Could not start node watcher because script "/home/teddy/.../node_modules/brunch/bin/brunch" does not exist. Your Phoenix application is still running, however assets won't be compiled. You may fix this by running "cd assets && npm install".teddy tresor mabulay
I'm not getting any error when creating the project using mix phoenix.newteddy tresor mabulay
Sounds like you still need to run npm install in your assets directory. Phoenix (by default) uses an asset builder called brunch. That is what your error is saying, the binary could not be found in the expected place. So once you run the install command I mentioned, it should be working properly.Justin Wood
finally fixed it.I had to run mix deps.get, cd assets && npm install && node node_modules/brunch/bin/brunch build The command runs for quit long time but at the end the issue is fixedteddy tresor mabulay

1 Answers

3
votes

finally fixed it.I had to run mix deps.get, cd assets && npm install && node node_modules/brunch/bin/brunch build The command runs for quit long time but at the end the issue is fixed