-
Notifications
You must be signed in to change notification settings - Fork 107
Making Wordless work with rbenv [DEPRECATED]
Alessandro Fazzi edited this page Apr 13, 2017
·
1 revision
- Find your rbenv root (typically
~/.rbenv
), but use absolute paths; - Create a
wordless_compass
file anywhere on your filesystem with the following content:
#!/usr/bin/env bash
export RBENV_ROOT="PASTE-YOUR-RBENV-ROOT-HERE"
export PATH=/usr/local/bin:$RBENV_ROOT/shims:$PATH
eval "$(rbenv init -)"
export RBENV_VERSION='PASTE-YOUR-PREFERRED-RUBY-VERSION-HERE'
compass "$@"
- Create a
wordless_ruby
file anywhere on your filesystem with the following content:
#!/usr/bin/env bash
export RBENV_ROOT="PASTE-YOUR-RBENV-ROOT-HERE"
export PATH=/usr/local/bin:$RBENV_ROOT/shims:$PATH
eval "$(rbenv init -)"
export RBENV_VERSION='PASTE-YOUR-PREFERRED-RUBY-VERSION-HERE'
ruby "$@"
- Make both files executable (
chmod +x wordless_compass wordless_ruby
); - Paste the path of these two executables into the
config/initializers/wordless_preferences.php
config file;