1. Install gem Bundler
root@slacky:~# gem install bundler
2. Check out Rails
aji@slacky:~/lab$ git clone git://github.com/rails/rails.git
3. Buat aplikasi Rails
aji@slacky:~/lab$ ruby rails/railties/bin/rails my_app aji@slacky:~/lab$ cd my_app/
4. Edit file Gemfile
# /home/aji/lab/my_app/Gemfile
# Edit this Gemfile to bundle your application's dependencies.
directory "/home/aji/lab/rails", :glob => "{*/,}*.gemspec" # ---> Add this line
git "git://github.com/rails/arel.git" # ---> Add this line
git "git://github.com/rails/rack.git" # ---> Add this line
gem "rails", "3.0.pre"
## Bundle edge rails:
# gem "rails", :git => "git://github.com/rails/rails.git"
## Bundle the gems you use:
# gem "bj"
# gem "hpricot", "0.6"
# gem "sqlite3-ruby", :require_as => "sqlite3"
# gem "aws-s3", :require_as => "aws/s3"
## Bundle gems used only in certain environments:
# gem "rspec", :only => :test
# only :test do
# gem "webrat"
# end
5. Bundle semua gem yang telah ter-install
aji@slacky:~/lab/my_app$ gem bundle
6. Selesai. Perintah-perintah ./script/console, ./script/server dan lain-lain seharusnya telah berjalan sebagaimana mestinya. Happy Bugmashing!
0 comments:
Post a Comment