16
「安心・安全・安定・信頼」できるインターネットサービスを 株式会社クルウィット 井澤 志充 サーバ環境で使うRVM Kanazawa.rb #8 13420日土曜日

RVM with Server Environment

Embed Size (px)

DESCRIPTION

サーバ環境で使うRVM Kanazawa.rb #8 での発表原稿

Citation preview

  • 1. RVM Kanazawa.rb #8 13420

2. RVM RVM: Ruby Version Manager : https://rvm.io/ Ruby gemset 213420 3. 313420 4. Jewelry Box RVM OSX RVM GUI : http://jewelrybox.unniti.com/ RVM 413420 5. 513420 6. 613420 7. Ruby/Gem () RVM 713420 8. RVM 3 Single-User install ~/.rvm install Multi-User install /usr/local/rvm install Mixed-User install multi-Userinstall/Override 813420 9. RVM Shell-Script ShellRuby/Gem $PATH, $GEM_HOME, $GEM_PATH, 913420 10. RVM ruby rvm use rvm alias create gemset rvm gemset create rvm use @ 1013420 11. Single-User install 1113420 12. rc.d/init.d Script #!/usr/local/bin/bash start() {echo -n "Starting hogeapp: "su app_user -c "source /home/app_user/.rvm/scripts/rvm; cd /home/app_user/hogeapp; bin/unicorn_rails -c config/unicorn.rb - E production -D"return 0 } stop() {kill -INT `cat ~app_user/hogeapp/tmp/pids/unicorn.pid`return 0 } case "$1" in start)start;; stop)stop;; esac 1213420 13. milterexploder magic Ruby: #!/home/app_user/.rvm/rubies/default/bin/ruby # -*- coding: utf-8 -*- require mail require nokogiri:: 1313420 14. rvm default default rvmdefault rvm rvm wrapper @gemset 1413420 15. rvm rubyx ruby 1513420 16. Thank You! If you have any comments, please send to: Mail: [email protected] / [email protected] Twitter: @Yukimitsu_Izawa 1613420