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

Apache automatically build! #138

Open
alirezarahmani opened this issue Aug 23, 2015 · 3 comments
Open

Apache automatically build! #138

alirezarahmani opened this issue Aug 23, 2015 · 3 comments

Comments

@alirezarahmani
Copy link

how I can configure my apache that can build sass file without manual build?

@widmogrod
Copy link
Owner

You shouldn't configure apache to achieve this effect.

When you build your application (i.e. on local machine) to be send to a production server, you should follow instructions from here:
https://github.com/widmogrod/zf2-assetic-module/blob/master/docs/tips.md#production

Then apache will use application, configured for production usage.

@alirezarahmani
Copy link
Author

@widmogrod Thanks , Yeah man !
I did this, but this will not build sass, is there any problem with sass files ?

@widmogrod
Copy link
Owner

Do you have sass preprocessor installed?

Basically if use sass filters in collection i.e.:

   'filters' => array(
      '?SassFilter' => array(
           'name' => 'Assetic\Filter\Sass\SassFilter'
       ),
  ),

Then this filter:
https://github.com/kriswallsmith/assetic/blob/master/src/Assetic/Filter/Sass/SassFilter.php#L45

Has constructor:

public function __construct($sassPath = '/usr/bin/sass', $rubyPath = null)

Witch, use sass parser from path /usr/bin/sass (by default)

You can change the path, updating filter section in configuration like so:

   'filters' => array(
      '?SassFilter' => array(
           'name' => 'Assetic\Filter\Sass\SassFilter',
           'option' => ['/my/path/to/bin/sass'], // this is new thing
       ),
  ),

@widmogrod widmogrod mentioned this issue Jul 4, 2016
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

2 participants