someline / someline-starter

Someline Starter is a PHP framework for quick building Web Apps and Restful APIs, with modern PHP design pattern foundation.
https://starter.someline.com/
839 stars 169 forks source link

No CSS Displayed #44

Open thinkinsysdev opened 7 years ago

thinkinsysdev commented 7 years ago

Newbie to laravel, Followed the instructions, but when I deployed the site, no CSS is being pulled.

Getting 404 errors

http://someline.app/assets/css/app.main.css (index):12 GET http://someline.app/assets/css/app.vendor.css (index):11 GET http://someline.app/assets/css/app.theme.css (index):365 GET http://someline.app/assets/js/manifest.js (index):364 GET http://someline.app/assets/js/app.vendor.js (index):363 GET http://someline.app/assets/js/app.theme.js (index):366 GET http://someline.app/assets/js/vendor.js (index):367 GET http://someline.app/assets/js/app.main.js (index):364 GET http://someline.app/assets/js/app.vendor.js (index):365 GET http://someline.app/assets/js/manifest.js (index):366 GET http://someline.app/assets/js/vendor.js (index):367 GET http://someline.app/assets/js/app.main.js 404 (Not Found)

I have tried following the steps but no dice.

geoidesic commented 7 years ago

+1

geoidesic commented 7 years ago

I have found that there is an app.theme.css in /assets/theme/ folder but I'm not sure why the theme is not being compiled to the CSS folder. I think it might have something to do with Elixir (https://laravel.com/docs/5.3/elixir) however, the installation instructions for Elixir state that the default package.json file for Laravel includes Elixir and Webpack – but this does not seem to be present for someline starter.

geoidesic commented 7 years ago

I notice that in the project folder there is a webpack.config.js file. So presumably this application is making use of webpack. I haven't managed to install and run webpack yet so I can't confirm whether this fixes the problem or not.

geoidesic commented 7 years ago

OK I found the problem. Need to run npm run watch to build the assets :) As it says in the documentation.