사용자 도구

사이트 도구


develop:ruby

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
다음 판 양쪽 다음 판
develop:ruby [2007/04/02 22:48]
mattabu
develop:ruby [2014/04/10 11:21]
starlits
줄 1: 줄 1:
 ====== Ruby ====== ====== Ruby ======
  
-===== Using Ruby on Debian Linux ===== +  - [[develop:ruby:install Ruby installation ]] 
-==== Install on Debian Linux ==== +  - [[develop:ruby:env | Set Rails Environment ]]
-Debian Linux (Sarge) 에서 지원되는 ruby의 버전이 낮으니 될 수 있으면, Debian Linux (Etch) 를 사용하기를 권고한다. +
-다음과 같이 설치하면 된다. +
-<code> +
-# apt-get install ruby irb ri rdoc ruby1.8-dev +
-</code> +
-  * The **irb** is acronym for Interactive RuBy.  It evaluates Ruby expression from the terminal. +
-  * **ri** is a command line tool that displays descriptions of built-in Ruby methods, classes, and modules. For methods, it shows you the calling sequence and a description. For classes and modules, it shows a synopsis along with a list of the methods the class or module implements. +
- +
-==== Install RubyGems ==== +
-RubyGems는 Ruby의 표준 패키지 관리프로그램이다. +
-<code> +
-# apt-get install rubygems +
-</code>+
  
 ===== Set Rails Environment (1) ===== ===== Set Rails Environment (1) =====
줄 94: 줄 81:
 </code> </code>
 <code> <code>
-# vi /opt/rails/apache2/conf/httpd.conf +# vi /etc/apache2/sites-available/test
-LoadModule php5_module modules/libphp5.so +
-AddType application/x-httpd-php .php .html .htm .inc +
-AddType application/x-httpd-php-source .phps +
-DirectoryIndex index.php index.html +
-Include conf/extra/httpd-vhosts.conf +
-# vi /opt/rails/apache2/conf/extra/httpd-vhosts.conf +
-# PHP 파트 +
-<Directory "PHP웹루트디렉토리"> +
-    Options Indexes FollowSymLinks +
-    AllowOverride None +
-    Order allow,deny +
-    Allow from all +
-</Directory>+
 <VirtualHost 아이피주소> <VirtualHost 아이피주소>
-    DocumentRoot PHP웹루트디렉토리 
     ServerName PHP도메인이름     ServerName PHP도메인이름
 +    DocumentRoot PHP웹루트디렉토리
 </VirtualHost> </VirtualHost>
-# Rais 파트 
-<Directory "RAILS웹루트디렉토리"> 
-    Options Indexes FollowSymLinks 
-    AllowOverride None 
-    Order allow,deny 
-    Allow from all 
-</Directory> 
 <VirtualHost 아이피주소> <VirtualHost 아이피주소>
     ServerName RAILS도메인이름     ServerName RAILS도메인이름
 +    DocumentRoot RAILS웹루트디렉토리
 +
     RewriteEngine On     RewriteEngine On
     RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f     RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f
줄 134: 줄 103:
     BrowserMatch bMSIE !no-gzip !gzip-only-text/html     BrowserMatch bMSIE !no-gzip !gzip-only-text/html
 </VirtualHost> </VirtualHost>
 +# cd /etc/apache2/sites-enabled
 +# ln -s ../sites-available/test 001-test
 </code> </code>
  
줄 218: 줄 189:
   * [[http://wiki.rubyonrails.com/rails/pages/Lighttpd]]   * [[http://wiki.rubyonrails.com/rails/pages/Lighttpd]]
   * [[http://trac.lighttpd.net/trac/wiki/#ReferenceDocumentation]]   * [[http://trac.lighttpd.net/trac/wiki/#ReferenceDocumentation]]
- 
develop/ruby.txt · 마지막으로 수정됨: 2014/04/10 11:26 저자 starlits