jasonlewis / basset

A better asset management package for Laravel.
http://jasonlewis.me/code/basset
241 stars 76 forks source link

@stylesheets('public-css') Code is not working on Live Server #172

Open ranaanees opened 11 years ago

ranaanees commented 11 years ago

On my local machine following code in blade view show all css... <-/head> @stylesheets('public-css') <-/head>

On Live Server it shows nothing. Only difference is on Live Server I put assets folder outside public folder.....

Config setting: 'public-css' => function($collection) { $collection->directory('assets/css', function($collection) { $collection->add('bootstrap.min.css'); $collection->add('bootstrap-responsive.min.css'); $collection->add('style.css'); })->apply('UriRewriteFilter'); },

Where could be the issue,,,

jasonlewis commented 11 years ago

Your looking for the assets inside public. This here $collection->directory('assets/css') is looking in public for an assets directory. You need to use $collection->directory('../assets/css') to navigate outside public. All paths are relative to public.

ranaanees commented 11 years ago

@jasonlewis thanks, It shows css and path is correct. but there is another error....The styles don't implement....When I Inspect Element in chrome and view css file sometimes it is empty...it also show message in title.... Whoops! There was an error

Help Please...Thanks

ranaanees commented 11 years ago

Instead of Basset...I directly apply css like below...

On local machine it works ok....but on server cs done apply and when view code in firefox and visit css link

ranaanees commented 11 years ago

When i browse any image from images folder....it gives following error..

Symfony \ Component \ HttpKernel \ Exception \ NotFoundHttpException

So, finally i am not able to access any asset.....what settings missing...

ux-engineer commented 11 years ago

Check if you have uploaded the hidden .htaccess file to the public folder.