Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kdridi/arykow

arykow
https://github.com/kdridi/arykow

Last synced: 2 days ago
JSON representation

arykow

Awesome Lists containing this project

README

        

--------------------------------------------------------------------------------
CHANGELOG
--------------------------------------------------------------------------------
2010-10-23 18:19 GMT: Initialize haml sample
sed -e 's,^ "Hello world.\+$, haml :index,' -i www/hello_world.rb
mkdir www/views
cat > www/views/index.haml << "EOF"
!!! XML
!!! Strict
%html{ :xmlns => "http://www.w3.org/1999/xhtml", :lang => "fr", "xml:lang" => "fr"}
%head
%title BoBlog
%meta{"http-equiv" => "Content-Type", :content => "text/html; charset=utf-8"}
%body
#header
%h1 BoBlog
%h2 Bob's Blog
#content
#footer
%p
All content copyright © Bob
EOF
cd www
ruby hello_world.rb

2010-10-23 18:04 GMT: Initialize sinatra framework
mkdir www
cd www
gem install bundler
cat > Gemfile << "EOF"
source :rubygems

gem 'sinatra'
gem 'haml'
EOF
bundle install
cat > hello_world.rb << "EOF"
require 'rubygems'

# If you're using bundler, you will need to add these 2 lines
require 'bundler'
Bundler.setup

require 'sinatra'

get '/' do
"Hello world, it's #{Time.now} at the server!"
end
EOF
ruby hello_world.rb

2010-10-23 17:49 GMT: Install ruby-1.9.2p0
export ARYKOW_HOME=/tmp/arykow
export MANPATH=$ARYKOW_HOME/share/man:$MANPATH
export PATH=$ARYKOW_HOME/bin/:$PATH
mkdir -p $ARYKOW_HOME/src
cd $ARYKOW_HOME/src
wget ftp://ftp.ruby-lang.org//pub/ruby/1.9/ruby-1.9.2-p0.tar.bz2
tar xf ruby-1.9.2-p0.tar.bz2
cd ruby-1.9.2-p0
./configure --prefix=$ARYKOW_HOME
make -j12
make -j12 install