可以做不同的环境类似:dev
,lab
,xsf
etc...然后分别在database.yml
中配置,然后各自用各自的 env.
standalone-migrations +1 现在一些脚本正在使用这个gem
还是比较方便的好用的。
rake assets:precompile
+1
用 RubyMine
想跳到哪就到哪。呵呵。
使用ssh
的 debug 来调试输出
ssh -v [email protected]
OpenSSH_5.3p1, OpenSSL 1.0.0-fips 29 Mar 2010
debug1: Reading configuration data /data/home/app100722374/.ssh/config
debug1: Applying options for 10.207.137.222
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 10.207.137.222 [10.207.137.222] port 36000.
debug1: Connection established.
debug1: identity file /data/home/app100722374/.ssh/identity type -1
debug1: identity file /data/home/app100722374/.ssh/id_rsa type 1
debug1: identity file /data/home/app100722374/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.3
debug1: match: OpenSSH_5.3 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.3
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host '[10.207.137.222]:36000' is known and matches the RSA host key.
debug1: Found key in /data/home/app100722374/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,keyboard-interactive
debug1: Next authentication method: gssapi-keyex
debug1: No valid Key exchange context
debug1: Next authentication method: gssapi-with-mic
debug1: An invalid name was supplied
Cannot determine realm for numeric host address
debug1: An invalid name was supplied
Cannot determine realm for numeric host address
debug1: An invalid name was supplied
debug1: An invalid name was supplied
debug1: Next authentication method: publickey
debug1: Trying private key: /data/home/app100722374/.ssh/identity
debug1: Offering public key: /data/home/app100722374/.ssh/id_rsa
debug1: Remote: Forced command: gitosis-serve app100722374@VM-137-222-tlinux
debug1: Remote: Port forwarding disabled.
debug1: Remote: X11 forwarding disabled.
debug1: Remote: Agent forwarding disabled.
debug1: Remote: Pty allocation disabled.
debug1: Server accepts key: pkalg ssh-rsa blen 277
debug1: read PEM private key done: type RSA
debug1: Remote: Forced command: gitosis-serve app100722374@VM-137-222-tlinux
debug1: Remote: Port forwarding disabled.
debug1: Remote: X11 forwarding disabled.
debug1: Remote: Agent forwarding disabled.
debug1: Remote: Pty allocation disabled.
Connection closed by 10.207.137.222
内容有点长,只是为提供更多的信息。
多谢 @chunlea 指正,措辞极端了一点,本意想说有股份的人应该多多考虑没有股份的员工,我对措辞做了调整。
创业成功/失败的故事大家听过很多,大多聚焦在跌宕起伏的前期和后期。中间的发展期很少有人提到,这个阶段可能已经有收益,但是还不够分,真的是股份越多优先级越低,大股东多年分不到很正常。已经卖房卖车的人,肯定已经是大股东了。
感谢大家捧场,求轻黑,求帮顶。
各种担心能够理解,@uudui, 管家婆毕业后在自己的领域创业 10 多年了,团队的成熟度可能超过你的估计,其他隐私请自行脑补。
@mystery 还是同样的错误
bundle update
Fetching source index from http://ruby.taobao.org/
Resolving dependencies...
Installing rake (10.1.1)
Using i18n (0.6.9)
Using multi_json (1.8.4)
Using activesupport (3.2.3)
Using builder (3.0.4)
Using activemodel (3.2.3)
Using arel (3.0.3)
Using tzinfo (0.3.38)
Using activerecord (3.2.3)
Installing highline (1.6.20)
Installing net-ssh (2.8.0)
Using net-scp (1.1.2)
Using net-sftp (2.1.2)
Using net-ssh-gateway (1.2.0)
Using capistrano (2.9.0)
Using capistrano-ext (1.2.1)
Using capistrano_colors (0.5.5)
Using coderay (1.0.9)
Using colored (1.2)
Using little-plugger (1.1.3)
Using logging (1.8.1)
Using method_source (0.8.2)
Using slop (3.3.3)
Using pry (0.9.10)
Using rake-hooks (1.2.3)
Using bundler (1.3.5)
Your bundle is updated!
rake -T
rake aborted!
cannot load such file -- active_record/deprecated_finders
不过可以先把 "Gemfile.lock" 删除了,然后执行 bundle install
bundle install
Fetching source index from http://ruby.taobao.org/
Resolving dependencies.......
Installing rake (10.1.1)
Installing i18n (0.6.9)
Installing multi_json (1.8.4)
Installing activesupport (3.2.3)
Installing builder (3.0.4)
Installing activemodel (3.2.3)
Installing arel (3.0.3)
Installing tzinfo (0.3.38)
Installing activerecord (3.2.3)
Installing highline (1.6.20)
Installing net-ssh (2.8.0)
Installing net-scp (1.1.2)
Installing net-sftp (2.1.2)
Installing net-ssh-gateway (1.2.0)
Installing capistrano (2.9.0)
Installing capistrano-ext (1.2.1)
Installing capistrano_colors (0.5.5)
Installing coderay (1.0.9)
Installing colored (1.2)
Installing little-plugger (1.1.3)
Installing logging (1.8.1)
Installing method_source (0.8.2)
Installing slop (3.3.3)
Installing pry (0.9.10)
Installing rake-hooks (1.2.3)
Using bundler (1.3.5)
Your bundle is complete!
It was installed into /usr/local/Cellar/ruby/1.9.3-p125/lib/ruby/gems/1.9.1/cache
等执行完毕后,使用命令 bundle exec rake -T
就可以列举出 task
但是如果不用bundle exec
的话还是有错误。这个我就比较疑惑了.难道 bundle install
不会把 gem 安装到 env 系统的目录中去?之前一直是这样安装的啊。
都有点不习惯了。今天时来还以为进错站了.我喜欢这个风格
定时执行:whenever
ruby 脚本查询表:ActiveRecord
最后 whenever -i
完事。
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
gem 'therubyracer', "0.12.0", :platform => :ruby
gem 'uglifier', '>= 1.0.3'
end
** gem 'therubyracer', "0.12.0", :platform => :ruby**
#7 楼 @jimrokliu 好像现在也只能这样。先试试等再把需求稳定一下再想一个方案了。
同感...
settingslogic +1
1:个人现在正在用的 yml 配置文件 2:我会放到 config/initializers/type_define.rb 中
在 deploy.rb 中添加 set :bundle_flags, "--local --deployment --quiet"
一直在使用 adminactive 来管理后台一些基本数据,感觉还是比较方便
不知道god是不是你要找的
感谢分享
会不会其它的 css 文件把.select
的样式覆盖了?