1. Install RVM
#
apt-get update
Pastikan login sebagai user buka root
$\curl -L https://get.rvm.io | bash -s stable --rails
tunggu selesai
#
source ~/.rvm/scripts/rvm
Cek RVM
#
rvm info
ruby-2.2.1:
system:
uname: "Linux php 3.2.0-4-amd64 #1 SMP Debian 3.2.68-1+deb7u5 x86_64 GNU/Linux"
system: "debian/7/i386"
bash: "/bin/bash => GNU bash, version 4.2.37(1)-release (i486-pc-linux-gnu)"
zsh: " => not installed"
. . .
#rvm list
rvm rubies
=* ruby-2.2.1 [ x86_64 ]
# => - current
# =* - current && default
# * - default
2. Install Ruby
#rvm install ruby
#rvm use ruby --default
#rvm rubygems current
#gem install rails
3. Install Sass
#gem install sass
4. Install Compass
#gem install compass
5. Install Dependencies
#gem install breakpoint
#gem install bootstrap-sass
Testing
untuk bisa di menggunakan
file app.scss (styles.scss) di Compass harus import bootstrap-nya
caranya bikin file
cd /var/www
nano style.scss
@import "bootstrap-sass-3.3.4/assets/stylesheets/bootstrap";
atau bisa
disuiakan directory
bootstrap-nya karena default ada di
/usr/local/rvm/scripts/gems/ruby-2.2.1/gems/
@import "/usr/local/rvm/scripts/gems/ruby-2.2.1/gems/bootstrap-sass-3.3.6/assets/stylesheets/bootstrap";
selanjutnya di generate
#
sass --watch style.scss:style.css
dan akan menghasilkan file style.css style.css.map
Komentar
Posting Komentar