DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

John has posted 18 posts at DZone. View Full User Profile

Ruby - Merb Edge + Feather Install

08.11.2008
| 4533 views |
  • submit to reddit
        
..install merb / etc / feather

..install dependencies
sudo gem install addressable english rspec
sudo gem install archive-tar-minitar tzinfo

..install merb edge
git clone git://github.com/sam/extlib.git
cd extlib
sudo rake install
cd ..

sudo git clone git://github.com/wycats/merb-core.git
sudo git clone git://github.com/wycats/merb-more.git
sudo gem install erubis rake json_pure rspec rack hpricot mime-types
cd merb-core ; sudo rake install ; cd ..
cd merb-more ; sudo rake install ; cd ..

..install datamapper-edge

..make sure you have openssl-ruby installed otherwise these will not compile!

sudo aptitude install openssl-ruby


sudo gem install ParseTree -v=2.1.1
sudo gem install ruby2ruby -v=1.1.8
sudo gem install addressable english rspec
mkdir -p ~/src cd ~/src
sudo gem install sake
sake -i http://github.com/dkubb/dm-dev/tree/master/dm-dev.sake?raw=true
sake dm:clone
cd dm
sake dm:install

..download feather
git clone git://github.com/fujin/feather.git
git clone git://github.com/fujin/feather-plugins.git
cd feather

..create database.yml in /feather/config/database.yml
development:
    adapter: mysql
    database: feather
    username: root
    password:
    host: localhost
#   socket: /var/run/mysqld/mysqld.sock

..save file then
cd ..
mkdir db

..create database manually
mysql -u root [password]

..then create db
create database feather;

..then exit mysql
exit;

..now init the feather database
merb -i

..then in the merb console (specific to merb-edge)
Database::initial_setup
DataMapper.auto_migrate!

..exit merb console, then run
merb

..navigate browser to
http://localhost:4000/         [your blog]
http://localhost:4000/admin    [admin panel]

..your admin login will be initially
username:admin
password:password