Never been to DZone Snippets before?

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

About this user

John http://www.red91.com

« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS 

ruby - merb edge + feather install

   1  
   2  ..install merb / etc / feather
   3  
   4  ..install dependencies
   5  sudo gem install addressable english rspec
   6  sudo gem install archive-tar-minitar tzinfo
   7  
   8  ..install merb edge
   9  git clone git://github.com/sam/extlib.git
  10  cd extlib
  11  sudo rake install
  12  cd ..
  13  
  14  sudo git clone git://github.com/wycats/merb-core.git
  15  sudo git clone git://github.com/wycats/merb-more.git
  16  sudo gem install erubis rake json_pure rspec rack hpricot mime-types
  17  cd merb-core ; sudo rake install ; cd ..
  18  cd merb-more ; sudo rake install ; cd ..
  19  
  20  ..install datamapper-edge
  21  
  22  ..make sure you have openssl-ruby installed otherwise these will not compile!
  23  
  24  sudo aptitude install openssl-ruby
  25  
  26  
  27  sudo gem install ParseTree -v=2.1.1
  28  sudo gem install ruby2ruby -v=1.1.8
  29  sudo gem install addressable english rspec
  30  mkdir -p ~/src cd ~/src
  31  sudo gem install sake
  32  sake -i http://github.com/dkubb/dm-dev/tree/master/dm-dev.sake?raw=true
  33  sake dm:clone
  34  cd dm
  35  sake dm:install
  36  
  37  ..download feather
  38  git clone git://github.com/fujin/feather.git
  39  git clone git://github.com/fujin/feather-plugins.git
  40  cd feather
  41  
  42  ..create database.yml in /feather/config/database.yml
  43  development:
  44      adapter: mysql
  45      database: feather
  46      username: root
  47      password:
  48      host: localhost
  49  #   socket: /var/run/mysqld/mysqld.sock
  50  
  51  ..save file then
  52  cd ..
  53  mkdir db
  54  
  55  ..create database manually
  56  mysql -u root [password]
  57  
  58  ..then create db
  59  create database feather;
  60  
  61  ..then exit mysql
  62  exit;
  63  
  64  ..now init the feather database
  65  merb -i
  66  
  67  ..then in the merb console (specific to merb-edge)
  68  Database::initial_setup
  69  DataMapper.auto_migrate!
  70  
  71  ..exit merb console, then run
  72  merb
  73  
  74  ..navigate browser to
  75  http://localhost:4000/         [your blog]
  76  http://localhost:4000/admin    [admin panel]
  77  
  78  ..your admin login will be initially
  79  username:admin
  80  password:password
« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS