Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kdridi/arykow
arykow
https://github.com/kdridi/arykow
Last synced: 2 days ago
JSON representation
arykow
- Host: GitHub
- URL: https://github.com/kdridi/arykow
- Owner: kdridi
- Created: 2010-10-23T17:41:59.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2010-10-23T19:28:18.000Z (about 14 years ago)
- Last Synced: 2023-03-11T03:34:13.674Z (over 1 year ago)
- Language: Ruby
- Homepage: www.arykow.com
- Size: 15.2 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
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.rb2010-10-23 18:04 GMT: Initialize sinatra framework
mkdir www
cd www
gem install bundler
cat > Gemfile << "EOF"
source :rubygemsgem '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.setuprequire 'sinatra'
get '/' do
"Hello world, it's #{Time.now} at the server!"
end
EOF
ruby hello_world.rb2010-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