samt
V2EX  ›  服务器

请教Centos 5.5+Nginx 32bit VPS下如何部署Rails3+MongoDB环境?

  •  
  •   samt ·
    PRO
    · May 23, 2011 · 6252 views
    This topic created in 5468 days ago, the information mentioned may be changed or developed.
    说下详细步骤
    2 replies    1970-01-01 08:00:00 +08:00
    makestory
        1
    makestory  
       May 23, 2011
    我的步骤大概是这样:

    装rvm,用rvm装比较灵活:
    bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)

    默认使用rvm,在 ~/.bashrc 加上:
    [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.

    在rvm装ree(也可以使用其他版本的ruby):
    rvm install ree

    装gem:
    rvm rubygems (注意,有可能记错了,楼主可能需要再试试)

    用gem装rails,(bundler 也装了,可以用 bundle install 了):
    gem install rails

    passenger + nginx :
    passenger-install-nginx-module

    mongoDB 我是用包管理装的,源码装也应该类似
    mongo的ruby库用 mongoid 。在rails_project里修改Gemfile gem mongoid
    samt
        2
    samt  
    OP
    PRO
       May 24, 2011
    好像不行哦,谁能写个详细的命令
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1200 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 23:24 · PVG 07:24 · LAX 16:24 · JFK 19:24
    ♥ Do have faith in what you're doing.