Coder Social home page Coder Social logo

Comments (95)

alfredsang avatar alfredsang commented on May 16, 2024

mac的postgresql怎么办?

from 19wu.

ywjno avatar ywjno commented on May 16, 2024

可以用brew装啊

from 19wu.

Laplaces avatar Laplaces commented on May 16, 2024

我用的是mac下postgresql 安装版,
运行rake db:create 报 FATAL: role "nineteen_wu" does not exist

使用官方自带的pgAdmin3,创建登陆角色nineteen_wu后,再使用rake 命令,正常运行

from 19wu.

doitian avatar doitian commented on May 16, 2024
Arch Linux
----------

RVM or rbenv
============

任选其一

-   RVM:

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

-   rbenv: https://github.com/sstephenson/rbenv#basic-github-checkout

PostgreSQL
==========

    sudo pacman -S postgresql postgresql-libs

权限不敏感的话,给 19wu 加个 role

    sudo psql -c "create role nineteen_wu LOGIN CREATEDB;" -U postgres

19wu
====

    git clone git://github.com/saberma/19wu.git
    cd 19wu

    # poor archlinuxer, /usr/bin/python is python3
    mkdir -p tmp/bin
    ln -s /usr/bin/python2 tmp/bin/python
    export PATH="$(pwd)/tmp/bin/python:$PATH"
    bundle install --without sqlite3 mysql2

    # 没有创建 nineteen_wu 这个 role 的话,需要指定个有 CREATEDB 权限的 role
    ruby setup.rb

    # 看看已有的功能
    bundle exec rspec -f d spec/features

    # 看看测试结果
    bundle exec rake spec
    bundle exec rake jasmine:ci

    # folk and contribute

from 19wu.

golden05 avatar golden05 commented on May 16, 2024

在lion 下把 database.yml 文件修改了
host: localhost
port: 5432
成功rake db:setup

from 19wu.

ygz20036 avatar ygz20036 commented on May 16, 2024

ubuntu 无法apt-get安装 postgresql

try this

sudo add-apt-repository ppa:pitti/postgresql
sudo apt-get update
sudo apt-get install postgresql-9.2

2012/12/25 golden05 [email protected]

在lion 下把 database.yml 文件修改了

host: localhost
port: 5432
成功rake db:setup


Reply to this email directly or view it on GitHubhttps://github.com/saberma/19wu/issues/19#issuecomment-11673259.

from 19wu.

saberma avatar saberma commented on May 16, 2024

@golden05 database.yml.example 已经加入 host 参数了。见 #35

@ygz20036 你的 Ubuntu 是什么版本的。

from 19wu.

mobiwolf avatar mobiwolf commented on May 16, 2024

我白天用的是win,晚上用的mac。win上安装railsinstaller,以及postgresql就可以了。

from 19wu.

saberma avatar saberma commented on May 16, 2024

@mobiwolf mac 和 win 都能运行进来了?

from 19wu.

ywjno avatar ywjno commented on May 16, 2024

winxp下是可以跑起来做开发的

from 19wu.

saberma avatar saberma commented on May 16, 2024

@ywjno 期待来自 win 的 PL

from 19wu.

ywjno avatar ywjno commented on May 16, 2024

win7下按照默认的配置也没问题了

from 19wu.

saberma avatar saberma commented on May 16, 2024

@ywjno 还有谁是用 win 平台的吗?有时间把 win 的安装说明整理下吧。

from 19wu.

ywjno avatar ywjno commented on May 16, 2024

文档方面是不是可以放到项目的Github Pages上面?一直在issues上要找文档也不是那么方便(可以在readme文件上面弄个link过去

from 19wu.

VaughnLi avatar VaughnLi commented on May 16, 2024

偶落后了,加快步伐。
OS X下:
如果类似于"fe_sendauth: no password supplied" 这样的报错,记得配置database.yml,将password字段配置成数据库的密码.

报错样例:
Couldn't create database for {"adapter"=>"postgresql", "encoding"=>"unicode", "host"=>"localhost", "port"=>5432, "pool"=>5, "username"=>"postgres", "password"=>nil, "database"=>"nineteen_wu_development"}
fe_sendauth: no password supplied

之后在执行rake db:setup

from 19wu.

saberma avatar saberma commented on May 16, 2024

@ywjno 就放 wiki 上吧,已经有好几个同学在整理了。

@Hyperxnoia 出现的错误也很重要,一定有其他人也会遇到。

from 19wu.

ygz20036 avatar ygz20036 commented on May 16, 2024

@saberma ubuntu ver 12.04

from 19wu.

mobiwolf avatar mobiwolf commented on May 16, 2024

@saberma 截止commit 4fa602b win可以运行的

from 19wu.

ywjno avatar ywjno commented on May 16, 2024

Windows xp / Windows 7

Ruby

  • RubyInstaller下载Ruby 1.9.3-p362的exe安装文件,双击该文件进行安装。
    在安装到Installation Destination and Optional Tasks的时候,安装路径不要带空格,并且选上 第二个 选项把Ruby加入到Path环境变量。
  • 下载Development Kit,然后按照Development Kit的wiki文档或者这篇blog该DevKit配置好。
  • cmd命令行中运行ruby -v,这时出现ruby 1.9.3p362 (2012-12-25) [i386-mingw32]则表示安装成功。
    如果不出现或许你需要修改环境变量的Path,把%RUBY_INSTALL_PATH%\bin放在Path变量的第一个。
  • RailsInstaller也是个不错的选择,不过鉴于我不是使用它来进行环境配置,因此出现问题的时候我可能无法立刻帮你解决。

PostgreSQL

  • 这里下载最新版本的PostgreSQL安装文件,双击该文件进行安装。
    安装的时候有个地方需要输入数据库密码,请记住输入的值。

Git

安装时的选项选择

  1. 在安装到Select Components的时候,Windows Explorer integration这个选项推荐安装Context menu entries那两个项目,这样能在系统右键集成Git GUI HereGit Bash Here这两快捷方式。
    前者是Git自带的一个Git GUI工具(很好用),后者是一个轻量级的bash命令窗口(超好用)。
  2. 在安装到Adjusting your PATH environment的时候,选择 第二个 ,把Git加入到Path环境变量,能直接在cmd命令行中使用Git的命令。
  3. 在安装到Configuring the line ending conversions的时候,选择 第一个 ,不然会弄乱代码的回车表示符, 切记切记

19wu

以下均在命令行中执行

# 得到项目最新代码
git clone git://github.com/saberma/19wu.git
# 进入项目目录
cd 19wu
# 先安装bundle
gem install bundler --no-ri --no-rdoc
# 安装项目依赖的gem
bundle install --without sqlite3 mysql2
# 下面这个命令肯定会出个错误,无视之
rake setup
# 找到`config/database.yml`文件,在password后面加上数据库密码
# 再次运行该命令
rake setup
# 这时应该会看到`3. Done! You can run 'rails server' now.`之后就可以把项目给跑起来了
rails server

from 19wu.

zhousak avatar zhousak commented on May 16, 2024

rake setup或者rake db:create都出现一下错误,这是什么情况

from 19wu.

richard-ma avatar richard-ma commented on May 16, 2024

ruby没装好,装个node.js吧

from 19wu.

hardywu avatar hardywu commented on May 16, 2024

pg 不好用。网上的安装教程都不全。命令行下登入pg沒問題,rake setup 沒問題。打開瀏覽器出來這個

PG::Error
could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"?

from 19wu.

zhousak avatar zhousak commented on May 16, 2024

@richard-ma xp上搞死了,怎么弄都不行,回家mac上继续。。。

from 19wu.

ywjno avatar ywjno commented on May 16, 2024

xp出现啥问题来着?我倒是还真没见过。。。

from 19wu.

hardywu avatar hardywu commented on May 16, 2024

我靠,重啟 apache搞定。妹的~!~

from 19wu.

richard-ma avatar richard-ma commented on May 16, 2024

@sakkkkkk 还是linux好,哈哈。win下搞依赖确实费劲

from 19wu.

oldcwj avatar oldcwj commented on May 16, 2024

Mac OS X Lion问题
rake db:setup
/Users/cuiwj/.rvm/gems/ruby-1.9.2-p318/gems/pg-0.14.1/lib/pg_ext.bundle: [BUG] Segmentation fault
ruby 1.8.7 (2011-12-28 patchlevel 357) [universal-darwin11.0]

Abort trap: 6

有人知道这是什么原因吗?

from 19wu.

nightire avatar nightire commented on May 16, 2024

@oldcwj 注意看提示信息,你在用ruby 1.8.7,版本问题

from 19wu.

richard-ma avatar richard-ma commented on May 16, 2024

@oldcwj 这个项目最低ruby是1.9.2的

from 19wu.

oldcwj avatar oldcwj commented on May 16, 2024

可是 ruby -v 是1.9.2呀,是不是要单独切换呀?

from 19wu.

sekirocc avatar sekirocc commented on May 16, 2024

请问下。Gemfile里面的gem source 可否指向http://ruby.taobao.org/ 而不是默认的 https://rubygems.org

from 19wu.

nightire avatar nightire commented on May 16, 2024

@Nickelchen 最好不要,大家保持一致。如果你本地开发的确需要连接的话,你可以在bundle的时候临时改掉,完事儿了checkout回去就是。

from 19wu.

caok avatar caok commented on May 16, 2024

在bundle 的时候therubyracer-0.11.0装不上
用的是ruby-1.9.3-p286,ubuntu12.04
提示
libv8_base.a: could not read symbols: Malformed archive
collect2: ld returned 1 exit status
make: *** [init.so] Error 1
这个是什么引起的?

from 19wu.

ygz20036 avatar ygz20036 commented on May 16, 2024

修改 Gemfile 添加 gem libv8

2012/12/27 Clark Cao [email protected]

在bundle 的时候therubyracer-0.11.0装不上
用的是ruby-1.9.3-p286,ubuntu12.04
提示
libv8_base.a: could not read symbols: Malformed archive
collect2: ld returned 1 exit status
make: *** [init.so] Error 1
这个是什么引起的?


Reply to this email directly or view it on GitHubhttps://github.com/saberma/19wu/issues/19#issuecomment-11698400.

from 19wu.

saberma avatar saberma commented on May 16, 2024

@caok 你所说的 lib8 问题是否还存在?

你试下换个 ruby 版本,或者试下将 libv8 的版本号去掉,先不指定,有可能跟 #49 的修改冲突了。

我重装了个 32位的 Ubuntu 12.04,但 ruby 安装的是 ruby-1.9.3-p362 版本,没有出现 libv8 的问题。

from 19wu.

oldcwj avatar oldcwj commented on May 16, 2024

@nightire @richard-ma 3Q,
换了1.9后就没有问题了

from 19wu.

kaku87 avatar kaku87 commented on May 16, 2024
  1. Copy config file...
    copying :C:/Sites/19wu/config/database.yml.example => C:/Sites/19wu/config/datab
    ase.yml
  2. Create database and table...
    rake aborted!
    (): couldn't parse YAML at line 8 column 0
    C:/Sites/19wu/lib/tasks/setup.rake:19:in `block in <top (required)>'
    Tasks: TOP => db:setup => db:schema:load_if_ruby => db:create => db:load_config
    (See full trace by running task with --trace)

ruby版本1.9.3p125,运行rake setup 时报上面的错误

from 19wu.

nightire avatar nightire commented on May 16, 2024

@kaku87 报错信息是不能解析YAML,相关错误发生在setup.rake执行到L19的时候。看了一下,就是执行db:schema:load操作,需要解析的文件不就是database.yml么……不明真相。

你试试手动执行rake db:schema:load看看什么情况?

from 19wu.

kaku87 avatar kaku87 commented on May 16, 2024

@nightire 还是有错,好莫名的错误
C:\Sites\19wu>rake db:schema:load
rake aborted!
(): couldn't parse YAML at line 8 column 0
C:/Sites/19wu/config/initializers/devise.rb:16:in block in <top (required)>' C:/Sites/19wu/config/initializers/devise.rb:3:in<top (required)>'
C:/Sites/19wu/config/environment.rb:5:in `<top (required)>'
Tasks: TOP => db:schema:load => environment
(See full trace by running task with --trace)

from 19wu.

saberma avatar saberma commented on May 16, 2024

@kaku87 你的环境是 windows xp 还是 windows 7?是按照 @ywjno 写的 [安装指南] 来做的吗?

确定你的环境后晚上我也装一个,尽量跟你环境一起,重现了就好解决问题了。

from 19wu.

ywjno avatar ywjno commented on May 16, 2024

@kaku87 ruby的安装路径告诉一下。还有你有运行bundle install

from 19wu.

kaku87 avatar kaku87 commented on May 16, 2024

@saberma @ywjno 我在公司的电脑里装的,系统是xp(日文),难道跟日文系统有关?bundle install执行过了,没有错误。
ruby的安装路径是C:\RailsInstaller\Ruby1.9.3

from 19wu.

ywjno avatar ywjno commented on May 16, 2024

@kaku87 现在手上已经没有日文的xp了,像再现一次也不好弄了

from 19wu.

kaku87 avatar kaku87 commented on May 16, 2024

@saberma @ywjno 恩,在公司没办法,那我还是晚上回家用自己的电脑做吧,谢谢回复哦

from 19wu.

ywjno avatar ywjno commented on May 16, 2024

@kaku87 有给配置Development Kit这玩意么

from 19wu.

kaku87 avatar kaku87 commented on May 16, 2024

@ywjno 木有配置,难道是这个问题,我配置一下试试看

from 19wu.

ywjno avatar ywjno commented on May 16, 2024

@kaku87 你用的那个RailsInstaller应该自带Development Kit才对的啊,不知道什么原因造成的,

from 19wu.

kaku87 avatar kaku87 commented on May 16, 2024

@ywjno 恩,应该是的,晚上回家mac上搞吧,win上各种伤心问题,启动服务调试都慢的要人命啊,谢谢回复

from 19wu.

ywjno avatar ywjno commented on May 16, 2024

@kaku87 其实吧mac下也是各种坑的说。。。

from 19wu.

sailorhero avatar sailorhero commented on May 16, 2024

winXP下已可以运行。
不过bundle install后,直接使用pgAdmin手工创建的db。
执行rake db:migrate
然后rails server
运行正常,首页显示OK

from 19wu.

azonwan avatar azonwan commented on May 16, 2024

终于可以正常运行了.PostgreSQL不熟悉,费了半天劲啊.

from 19wu.

lhuang7 avatar lhuang7 commented on May 16, 2024

在bundle 的时候therubyracer-0.11.0装不上
用的是ruby-1.9.3-p286,ubuntu12.04
提示
libv8_base.a: could not read symbols: Malformed archive
collect2: ld returned 1 exit status
make: *** [init.so] Error 1
然后装 libv8
libv8-3.11.8.3-x86_64-linux/vendor/v8/out/x64.release/obj.target/tools/gyp/libv8_base.a: could not read symbols: Malformed archive

from 19wu.

zhaozhiming avatar zhaozhiming commented on May 16, 2024

我这几天执行bundle install --without sqlite3 mysql2 总是遇到下面的错误,status.rubygems.org无法访问,你们有没有遇到过这个问题?

Fetching gem metadata from https://rubygems.org/.
Error Bundler::HTTPError during request to dependency API
Fetching full source index from https://rubygems.org/
Could not reach https://rubygems.org/

from 19wu.

tanglei528 avatar tanglei528 commented on May 16, 2024

安装 therubyracer 的时候 报错,ruby-1.9.3,ubuntu12.04,那个 lib8我也装了,就是这个gem装不上!哪里出问题了?
表示装成功了。在ruby-1.9.3,ubuntu12.04下。其中therubyracer版本~> 0.11.1,'libv8', '~> 3.11.8.7',在安装这两个的时候问题多多,各种连不上,多试几次

from 19wu.

zhaozhiming avatar zhaozhiming commented on May 16, 2024

终于安装成功了,Gemfile里面设置了libv8和therubyracer的版本才可以.
gem 'libv8', '3.11.8.12', :platforms =>
gem 'therubyracer', '0.11.2', :platforms => :ruby

from 19wu.

liushuigs avatar liushuigs commented on May 16, 2024

@kaku87的出错
$ rake setup

  1. Copy config file...
  2. Create database and table...
    rake aborted!
    (): could not find expected ':' while scanning a simple key at line 7 c
    olumn 3
    d:/gitproject/19wu/lib/tasks/setup.rake:27:in `block in <top (required)>'
    Tasks: TOP => db:setup => db:schema:load_if_ruby => db:create => db:load_config
    (See full trace by running task with --trace)
    请问@kaku87有没有解决这个问题啊?

from 19wu.

jacky-zhangjb avatar jacky-zhangjb commented on May 16, 2024

遇到 楼上相同的问题:

  1. Create database and table...
    rake aborted!
    (): could not find expected ':' while scanning a simple key at line 7 column 3
    /home/jankyzhang/.rvm/gems/ruby-1.9.3-p374/gems/railties-3.2.11/lib/rails/application/configuration.rb:115:in database_configuration' /home/jankyzhang/.rvm/gems/ruby-1.9.3-p374/gems/activerecord-3.2.11/lib/active_record/railties/databases.rake:25:inblock (2 levels) in <top (required)>'
    /var/www/19wu/lib/tasks/setup.rake:27:in block in <top (required)>' /home/jankyzhang/.rvm/gems/ruby-1.9.3-p374/bin/ruby_noexec_wrapper:14:ineval'
    /home/jankyzhang/.rvm/gems/ruby-1.9.3-p374/bin/ruby_noexec_wrapper:14:in `'
    Tasks: TOP => db:setup => db:schema:load_if_ruby => db:create => db:load_config
    (See full trace by running task with --trace)

求解决方法?

from 19wu.

jacky-zhangjb avatar jacky-zhangjb commented on May 16, 2024

本人的系统是 Ubuntu 12.04 遇到的3个问题,以及 解决方法。

1.therubyracer的问题。
修改 Gemfile :
gem 'libv8', '~> 3.11.8.12', :platforms => :ruby
gem 'therubyracer', '0.11.2',:platforms => :ruby
后可以正常 bundle install。

2.运行rake setup 的时候,
提示没有 readline。
参照 :https://rvm.io//packages/readline/ 解决。

3.Create database and table... rake aborted! (): could not find expected ':' while scanning a simple key at line 7 column 3 /home/jankyzhang/.rvm/gems/ruby-1.9.3-p374/gems/railties-3.2.11/lib/rails/application/configuration.rb:115:in database_configuration' /home/jankyzhang/.rvm/gems/ruby-1.9.3-p374/gems/activerecord-3.2.11/lib/active_record/railties/databases.rake:25:inblock (2 levels) in ' /var/www/19wu/lib/tasks/setup.rake:27:in block in <top (required)>' /home/jankyzhang/.rvm/gems/ruby-1.9.3-p374/bin/ruby_noexec_wrapper:14:ineval' /home/jankyzhang/.rvm/gems/ruby-1.9.3-p374/bin/ruby_noexec_wrapper:14:in `' Tasks: TOP => db:setup => db:schema:load_if_ruby => db:create => db:load_config (See full trace by running task with --trace)

经分析,应该是Pg出现问题。
切换到 sqlite3后 。重新rake setup 解决。

至此。终于在本地搭建 19wu的开发环境了。

希望对其他朋友有用。

from 19wu.

kaku87 avatar kaku87 commented on May 16, 2024

@liushuigs 我的问题没有解决,后来换mac做了,xp上真的是各种奇妙的问题,解决各种问题花了很多时间,mac上做真的是各种欢乐,小速度还是挺快的,而且木有发现啥问题目前

from 19wu.

faxiubite avatar faxiubite commented on May 16, 2024

你可以装一个虚拟机去做!
新手啊
随意一说!

from 19wu.

tanglei528 avatar tanglei528 commented on May 16, 2024

我在本机安装了,运行成功,但注册后,怎么邮箱收不到激活邮件呢??

from 19wu.

johnnyworker1012 avatar johnnyworker1012 commented on May 16, 2024

@tanglei528

  1. 项目下运行命令行: rake jobs:work
  2. 在浏览器打开: http://localhost:3000/delivered_mails

from 19wu.

tanglei528 avatar tanglei528 commented on May 16, 2024

运行http://localhost:3000/delivered_mails 后,直接出现异常:
ActiveRecord::RecordNotFound in UsersController#show

from 19wu.

tanglei528 avatar tanglei528 commented on May 16, 2024

有呢

from 19wu.

johnnyworker1012 avatar johnnyworker1012 commented on May 16, 2024

@tanglei528 ,不清楚诶,比较奇怪。demo帐户可以登陆吗?

from 19wu.

doitian avatar doitian commented on May 16, 2024

@tanglei528 更新下代码,这个问题已经 fix 了,/deliverred_mails 的路由需要放到 /:login 路由前面

from 19wu.

faxiubite avatar faxiubite commented on May 16, 2024

D:\My Documents\19wu>rake setup
�[31mCould not find capybara-2.0.1 in any of the sources�[0m
�[33mRun bundle install to install missing gems.�[0m
can you give me hand?

from 19wu.

ywjno avatar ywjno commented on May 16, 2024

run bundle install plz

from 19wu.

faxiubite avatar faxiubite commented on May 16, 2024

我是windows
现在在执行bundle install还没有执行完

from 19wu.

faxiubite avatar faxiubite commented on May 16, 2024

我安装到第一次rake setup这一步
提示错误

“D:\My Documents\19wu>rake setup

  1. Copy config file...
  2. Create database and table...
    rake aborted!
    (): couldn't parse YAML at line 8 column 0
    D:/My Documents/19wu/lib/tasks/setup.rake:27:in `block in <top (required)>'
    Tasks: TOP => db:setup => db:schema:load_if_ruby => db:create => db:load_config
    (See full trace by running task with --trace)”

note:在config目录下面有三个datebase.yml文件,我都把密码加进去了

from 19wu.

ywjno avatar ywjno commented on May 16, 2024

用的是哪个数据库,数据库有setup么

from 19wu.

faxiubite avatar faxiubite commented on May 16, 2024

bundle已经succeed了
试了rake setup 5次终于过了!
D:\My Documents\19wu>rake setup

  1. Copy config file...
  2. Create database and table...
    -- create_table("delayed_jobs", {:force=>true})
  3. Done! You can run 'guard' now.
  4. Open /delivered_mails in browser if you need to receive e-mail.
    安装好了 服务启动起来了
    但是在网页访问不了

from 19wu.

faxiubite avatar faxiubite commented on May 16, 2024

D:\My Documents\19wu>rails server
=> Booting Thin
=> Rails 3.2.11 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server

Thin web server (v1.5.0 codename Knife)
Maximum connections set to 1024
Listening on 0.0.0.0:3000, CTRL+C to stop

datebase:
defaults: &defaults
adapter: postgresql

from 19wu.

faxiubite avatar faxiubite commented on May 16, 2024

是不是跟我之前用的InstantRails-2.0-win有关啊(现在都是按照当前页面的说明在windows7下进行安装的)
我的那个InstantRails文件没有删除,但是我把path已经删除了!

from 19wu.

ywjno avatar ywjno commented on May 16, 2024

跟InstantRails那玩意没关系啊。。。给的log消息太少不清楚什么原因造成的

from 19wu.

faxiubite avatar faxiubite commented on May 16, 2024

我的系统是win7 64位的!
我运行rake setup之后的信息是:

  1. Copy config file...
  2. Create database and table...
  3. Create test table...
  4. Done! You can run 'guard' now.
  5. Open /delivered_mails in browser if you need to receive e-mail.
    Please contact us if you have any problems. Thanks.
    之后我按照提示运行guard
    后来又推出guard
    但是没有出现“# 这时应该会看到3. Done! You can run 'rails server' now.之后就可以把项目给跑起来了
    rails server”
    我自己运行rails server
    <------>
    D:\My Documents\19wu>rails server
    => Booting Thin
    => Rails 3.2.11 application starting in development on http://0.0.0.0:3000
    => Call with -d to detach
    => Ctrl-C to shutdown server

Thin web server (v1.5.0 codename Knife)
Maximum connections set to 1024
Listening on 0.0.0.0:3000, CTRL+C to stop
<------->
我在浏览器输入http://0.0.0.0:3000
提示“网址为 http://0.0.0.0:3000/ 的网页可能暂时无法连接,或者它已永久性地移动到了新网址”
没有像我之前做的demo一样可以直接访问网页,
而且“CTRL+C ”不能停止cmd窗口,只能通过点击“关闭”图标,关闭cmd!
对ruby不熟悉,有些问题比较简单,多多指点啊!

from 19wu.

ywjno avatar ywjno commented on May 16, 2024

你有试过用127.0.0.1:3000或者localhost:3000来打开么?

from 19wu.

faxiubite avatar faxiubite commented on May 16, 2024

我试过192.168.1.1 和localhost
都是无法访问
是不是rails安装失败了?
我之前一直用的InstantRails-2.0-win
看到这个网站之后才把path改了
重新按照网站的说明安装的!
不知道是哪一步出错了!
明天我再试试重装一遍 主要是没有提示信息 也不知道是哪一步出错了!
谢谢你!

from 19wu.

ywjno avatar ywjno commented on May 16, 2024

我还真没试过用InstantRails-2.0-win来做过,麻烦告诉一下在cmd中输入如下命令后返回的东东
ruby -vrails -vgem -v

from 19wu.

faxiubite avatar faxiubite commented on May 16, 2024

C:\Users\Administrator>ruby -v
ruby 1.9.3p125 (2012-02-16) [i386-mingw32]
C:\Users\Administrator>rails -v
Rails 3.2.11
C:\Users\Administrator>gem -v
1.8.16

from 19wu.

ywjno avatar ywjno commented on May 16, 2024

这看起来没什么问题才对,我还真不知道是什么原因了。。

from 19wu.

faxiubite avatar faxiubite commented on May 16, 2024

我把InstantRails-2.0-win删除了
重新安装了一下就好了!

from 19wu.

loveky avatar loveky commented on May 16, 2024

@saberma
rake setup遇到错误Missing setting 'sms' in /Users/gewang/temp_project/19wu/config/settings.yml
这个该怎么设置?

=> rake setup
1. Copy config file...

2. Create database and table...
nineteen_wu_development already exists
nineteen_wu_test already exists
rake aborted!
Missing setting 'sms' in /Users/gewang/temp_project/19wu/config/settings.yml
/Users/gewang/.rvm/gems/ruby-1.9.3-p194/gems/settingslogic-2.0.8/lib/settingslogic.rb:173:in `missing_key'
/Users/gewang/.rvm/gems/ruby-1.9.3-p194/gems/settingslogic-2.0.8/lib/settingslogic.rb:127:in `method_missing'

from 19wu.

doitian avatar doitian commented on May 16, 2024

@loveky diff 下 settings.yml 和 settings.yml.example。或者对照着 settings.yml.example 修改下 settings.yml

from 19wu.

loveky avatar loveky commented on May 16, 2024

这个可否改一下settings.yml添加上对应字段,或者修改一下rake setup任务自动设置一下?

from 19wu.

ywjno avatar ywjno commented on May 16, 2024

本地测试的话,删掉settings.yml文件然后把settings.yml.example改名为settings.yml,这样最方便

from 19wu.

wuqxuan avatar wuqxuan commented on May 16, 2024

Ubuntu 11.10 ,ruby 1.9.3运行rake setup 的时候,提示
You're running a version of ruby with no Readline support...
@ebowsoft 给的解决方法没看懂

from 19wu.

cassiuschen avatar cassiuschen commented on May 16, 2024

求问管理员账号是啥………另外它怎么进p ro du c ti on模式呢?仿佛兮一直跑在dev模式下…

from 19wu.

saberma avatar saberma commented on May 16, 2024

@cassiuschen

production 环境的管理员帐号是 [email protected],可以在 config/settings.yml 中配置:

  email: &email
    from: '19wu <[email protected]>'

development 环境的是 [email protected]

进 production 可以运行:

RAILS_ENV=production rails server

from 19wu.

cassiuschen avatar cassiuschen commented on May 16, 2024

@saberma 但这样的话production的数据库没有啊= =!我看你rake setup里已经禁止production运行setup了

from 19wu.

saberma avatar saberma commented on May 16, 2024

@cassiuschen 生产环境下是要自己动手的。

创建数据库(以 PostgreSQL 为例)

su postgres # 连接数据库
psql -U postgres
  postgres=# CREATE DATABASE nineteen_wu_production;

from 19wu.

zuoyang avatar zuoyang commented on May 16, 2024

在阿里云服务器上安装的时候,
执行 bundle install --without sqlite3 mysql2,报错:

An error occurred while installing pg (0.16.0), and Bundler cannot continue.
Make sure that gem install pg -v '0.16.0' succeeds before bundling.

求问咋解决?

from 19wu.

cassiuschen avatar cassiuschen commented on May 16, 2024

服务器上先安装postgresql。比如apt-get install postgresql-9.1,如果还缺安装libpg-dev试试

2014/1/14 zuoyang [email protected]

在阿里云服务器上安装的时候,
执行 bundle install --without sqlite3 mysql2,报错:

An error occurred while installing pg (0.16.0), and Bundler cannot
continue.
Make sure that gem install pg -v '0.16.0' succeeds before bundling.

求问咋解决?


Reply to this email directly or view it on GitHubhttps://github.com//issues/19#issuecomment-32244705
.

from 19wu.

saberma avatar saberma commented on May 16, 2024

@zuoyang 你还没有安装 PostgreSQL 数据库吧?

sudo apt-get install postgresql-9.1 libpq-dev

from 19wu.

zuoyang avatar zuoyang commented on May 16, 2024

好,谢谢

from 19wu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.