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

Using in Production #6

Closed
Schyzophrenic opened this issue Jan 27, 2014 · 2 comments
Closed

Using in Production #6

Schyzophrenic opened this issue Jan 27, 2014 · 2 comments

Comments

@Schyzophrenic
Copy link

First of all, thanks for the bundle !

I am having a hard time understanding how / whether I should use this bundle in production.
In the readme, you only enable the bundle in test / dev env but you also put a reference in the config_prod.yml file, thus generating an error.
It makes sense not to enable it in production as it seems an unecessary work to watch these files.

I deploy manually onto the production server.
I have configured the css to be generated in the Resources/public/css so it gets installed through the asset:install command.

Nonetheless, the generated css is stored in bundles/acmebundle/css/style.css whereas the link looks for it in /css/style.css.

Here is how I call the css in my base.html.twig file.

{% stylesheets 
    "@AcmeBundle/Resources/public/css/style.css" 
%}
<link rel="stylesheet" href="{{ asset_url }}"/>
@Schyzophrenic
Copy link
Author

Well, I am sorry. I think I got confused with this new stuff,
Please disregard my issue as it is fixed by a cache clear...

@matteosister
Copy link
Owner

👍

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