8000 安装说明,有任何问题请反馈 · Issue #19 · 19wu/19wu · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
安装说明,有任何问题请反馈 #19
Closed
@saberma

Description

@saberma

我这里是使用 Ubuntu,安装有任何问题请提问,其他平台的也请在这里补充。
稍后统一整理到 Wiki。

Arch Linux 的看这个 回贴

Windows Xp 和 Windows 7 的看这个 回帖

ubuntu / lubuntu 12.10

RVM

sudo apt-get install curl imagemagick

安装好 RVM

curl -L https://get.rvm.io | bash -s stable

安装 Ruby 依赖的系统组件(可以通过运行 rvm requirements 查看)

    sudo apt-get install build-essential openssl libreadline6 libreadline6-dev git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison pkg-config

安装 Ruby

rvm install 1.9.3

把以下内容加到 ~/.bashrc 或者 ~/.zshrc 中

[[ -s "/home/saberma/.rvm/scripts/rvm" ]] && source "/home/saberma/.rvm/scripts/rvm"

PostgreSQL

sudo apt-get install postgresql-9.1 libpq-dev

修改 /etc/postgresql/9.1/main/pg_hba.conf 权限控制,本地 TCP 访问设置为完全信任

#host    all             all             127.0.0.1/32            md5
host    all             all             127.0.0.1/32            trust

修改后要重启

sudo service postgresql restart

19wu

请先 fork 项目,例如 @doitian fork 了项目后,看起来是这样的,然后就可以 clone 到本地了。

git clone git@github.com:doitian/19wu.git    # 注意 doitian 会是你自己的 github 帐号
cd 19wu
bundle install --without sqlite3 mysql2                        # without 参数会写入 .bundle/config
rake setup 

启动

rails server

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0