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

css needs to be dynamic when under development #24

Open
ranguard opened this issue Sep 18, 2011 · 1 comment
Open

css needs to be dynamic when under development #24

ranguard opened this issue Sep 18, 2011 · 1 comment
Labels

Comments

@ranguard
Copy link
Member

/static/css/leostyle.css has TT in it:

e.g:

background: transparent url([% combust.static_url("/images/arrow_grey.gif") %]) no-repeat center right

Either the TT should be removed or CSS files need to be served through TT when developing.

@rspier
Copy link
Contributor

rspier commented Sep 11, 2016

(from our thread from May 2016)

OPTION A:

  1. make a static host

(assumption, *.localhost points to 127.0.0.1)

[static]
servername = static.localhost

  1. add static_base to your site's config pointing to the new static host.

[www]
servername = www.localhost
static_base = //static.localhost:8230/

(8230 should match up with whatever the port setting is earlier in the file.)

OPTION B:

--- a/apache/conf/sites/www.tmpl
+++ b/apache/conf/sites/www.tmpl
@@ -30,4 +30,9 @@
         Allow from all
     </Directory>

+    <Location /static/css/>
+       SetHandler perl-script
+       PerlHandler PerlOrg::Control::CSS
+    </Location>
+
   </VirtualHost>

COMMENTARY:
Option A is mirrors how production works.
Option B would need to be added to all vhosts that use static files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants