public
Description: Uber lightweight Merb blogging engine. Make sure you check out the feather-plugins repo as well!
Home | Edit | New

Feather Install + Typo Export

With a bit of help from oren I managed to get Feather installed and setup, what follows are the processes I performed to get it up & running; plus a sql script to export & import your typo posts into feather articles.

Later this week I’m going to test this all thru a Debian Etch VirtualBox machine to make sure it’s 100% exact and working, first draft at present.

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!
bq. 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
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
cd ..

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

import typo articles into feather (works on 5.12, 4 & 5 should be fine)

insert into feather.articles
(title, content, created_at, published_at, user_id, permalink, published, formatter)
VALUES
(SELECT title, body as content, created_at, published_at, 1 as user_id, CONCAT AS CHAR),permalink) as permalink, 1 as published, ‘default’ as formatter FROM typo.contents c where published = 1 and type = ‘Article’)

Last edited by johnantoni, Tue Aug 12 11:12:41 -0700 2008
Home | Edit | New
Versions: