zoukankan      html  css  js  c++  java
  • rails新环境

    sudo apt-get install gcc build-essential g++ libssl-dev libreadline5-dev zlib1g-dev linux-headers-generic libxml2-dev libcurl4-openssl-dev curl git-core bison zlib1g subversion autoconf libpcre3-dev iptux mysql-server-5.1 libevent-dev openssh-server imagemagick libmysql-ruby libmysqlclient-dev libsqlite3-dev

    参考了
    http://www.cnblogs.com/lexus/archive/2011/05/30/2063049.html

    install rvm
    bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
    rvm -v
    查看 rvm版本1.6.32
    rvm install 1.9.3
    rvm list
    rvm 1.9.3 --default
    rvmsudo gem install passenger
    <kbd>passenger-install-nginx-module</kbd>
    回车,选择1推荐安装
    The Nginx configuration file (/opt/nginx/conf/nginx.conf)
    must contain the correct configuration options in order for Phusion Passenger
    to function correctly.
    
    This installer has already modified the configuration file for you! The
    following configuration snippet was inserted:
    
      http {
          ...
          passenger_root /home/mlzboy/.rvm/gems/ruby-1.9.3-preview1/gems/passenger-3.0.8;
          passenger_ruby /home/mlzboy/.rvm/wrappers/ruby-1.9.3-preview1/ruby;
          ...
      }
    
    After you start Nginx, you are ready to deploy any number of Ruby on Rails
    applications on Nginx.
    
    
    
    Deploying a Ruby on Rails application: an example
    
    Suppose you have a Ruby on Rails application in /somewhere. Add a server block
    to your Nginx configuration file, set its root to /somewhere/public, and set
    'passenger_enabled on', like this:
    
       server {
          listen 80;
          server_name www.yourhost.com;
          root /somewhere/public;   # <--- be sure to point to 'public'!
          passenger_enabled on;
       }
    
    And that's it! You may also want to check the Users Guide for security and
    optimization tips and other useful information:
    
      /home/mlzboy/.rvm/gems/ruby-1.9.3-preview1/gems/passenger-3.0.8/doc/Users guide Nginx.html
    
    Enjoy Phusion Passenger, a product of Phusion (www.phusion.nl) :-)
    http://www.modrails.com/
    
    Phusion Passenger is a trademark of Hongli Lai & Ninh Bui.
    
    
    <code></code><pre><pre class="shell" style="margin-top: 0px; margin-bottom: 0px;">#gem install bundler
    gem install rails
    


    rails new xxx -JT -d mysql

    参考http://lihbobo.iteye.com/blog/1060851


    install komodo-edit
    wget http://downloads.activestate.com/Komodo/releases/6.1.2/Komodo-Edit-6.1.2-8334-linux-libcpp6-x86.tar.gz





  • 相关阅读:
    Github 简明教程--GitHub这么火,测试员你不学学吗?
    IT行业,尤其是软件测试,怎么才能月薪突破2万?
    linux 下cmake 编译 ,调用,调试 poco 1.6.0 小记
    ffmpeg(2.6) rockplayer android 下编译 小记.
    完成端口
    C++四种强制转换
    方法区(Method Area)基础知识
    逃逸分析
    堆空间参数设置小结
    堆中的线程私有缓存区域TLAB(Thread Local Allocation Buffer)
  • 原文地址:https://www.cnblogs.com/lexus/p/2138515.html
Copyright © 2011-2022 走看看