Does --css-dir always have to be relative to the project directory?

73 views
Skip to first unread message

leeand00

unread,
Aug 25, 2010, 2:21:09 PM8/25/10
to Compass
I'm using compass 0.10.4

I'm running a compass command and I want it to put it's output to the
server when I run a watch instead of to the project directory.

Is there any way of specifying an absolute path instead of a path
relative to the directory you want the css output to?

I'm trying to have my compiled css output to the directory:
/home/leeand00/andrew-leer.com/wp-content/themes/coffeeSunrise

but instead it is being output to
<compass-project-dir>/home/leeand00/andrew-leer.com/wp-content/themes/
coffeeSunrise

I've tried specifying the compiled css output directory using --css-
dir on the command line.

I've also tried changing the value of css_dir to /home/leeand00/andrew-
leer.com/wp-content/wp-content/themes/coffeeSunrise in config.rb and
not specifying the --css-dir argument and I get the same result.

I realize that this can be specified using ../../../ (as many times as
needed) but since I don't always know where my deployment point would
be this is sub optimal.

Thank you,
Andrew J. Leer

Chris Eppstein

unread,
Aug 25, 2010, 3:58:59 PM8/25/10
to compas...@googlegroups.com
I have long intended to provide this feature. Some aspects of it existed but didn't quite work. until now.


Basically, in your config, if you want to supply a full path, set *_path instead of *_dir and give an absolute path to the location.

From the cli, the --xxx-dir options are smart if you pass an absolute path to them they will set the xxx_path option for you instead.

Are you able to pull down the latest code and give it a try?

chris


--
You received this message because you are subscribed to the Google Groups "Compass" group.
To post to this group, send email to compas...@googlegroups.com.
To unsubscribe from this group, send email to compass-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/compass-users?hl=en.


leeand00

unread,
Aug 25, 2010, 5:51:53 PM8/25/10
to Compass
Is it available from the gem sources?

On Aug 25, 11:58 am, Chris Eppstein <ch...@eppsteins.net> wrote:
> I have long intended to provide this feature. Some aspects of it existed but
> didn't quite work. until now.
>
> http://github.com/chriseppstein/compass/commit/ec648f17b072c711b77be8...
>
> <http://github.com/chriseppstein/compass/commit/ec648f17b072c711b77be8...>Basically,
> in your config, if you want to supply a full path, set *_path instead of
> *_dir and give an absolute path to the location.
>
> From the cli, the --xxx-dir options are smart if you pass an absolute path
> to them they will set the xxx_path option for you instead.
>
> Are you able to pull down the latest code and give it a try?
>
> chris
>
> > compass-user...@googlegroups.com<compass-users%2Bunsu...@googlegroups.com>
> > .

rubybox

unread,
Aug 25, 2010, 6:35:21 PM8/25/10
to Compass
great i just wanted this feature tonight i used like ../../ to go back
in the path structure works fine also
> > > compass-user...@googlegroups.com<compass-users%2Bunsubscribe@goog legroups.com>

Chris Eppstein

unread,
Aug 25, 2010, 7:04:50 PM8/25/10
to compas...@googlegroups.com
No it's available on github.

cd compass
gem build compass.gemspec
sudo gem install compass-0.10.5.pre.0.gem


Chris

To unsubscribe from this group, send email to compass-user...@googlegroups.com.

leeand00

unread,
Aug 25, 2010, 8:18:04 PM8/25/10
to Compass
Thanks Chris! Your the man! :)

On Aug 25, 3:04 pm, Chris Eppstein <ch...@eppsteins.net> wrote:
> No it's available on github.
>
> git clone git://github.com/chriseppstein/compass.git
> cd compass
> gem build compass.gemspec
> sudo gem install compass-0.10.5.pre.0.gem
>
> Chris
>
> > <compass-users%2Bunsu...@googlegroups.com<compass-users%252Buns...@googlegroups.com>

Chris Eppstein

unread,
Aug 25, 2010, 8:22:28 PM8/25/10
to compas...@googlegroups.com
Let me know if you have any problems.

To unsubscribe from this group, send email to compass-user...@googlegroups.com.

leeand00

unread,
Aug 25, 2010, 9:56:46 PM8/25/10
to Compass
Works great thus far my friend.

On Aug 25, 4:22 pm, Chris Eppstein <ch...@eppsteins.net> wrote:
> Let me know if you have any problems.
>
> > > > <compass-users%2Bunsu...@googlegroups.com<compass-users%252Buns...@googlegroups.com>
> > <compass-users%252Buns...@googlegroups.com<compass-users%25252Bun...@googlegroups.com>
Reply all
Reply to author
Forward
0 new messages