Git Product home page Git Product logo

Comments (9)

Eric-Guo avatar Eric-Guo commented on June 7, 2024

无法复现,请尝试在项目内运行rails g wechat:install,然后比较一下config/wechat.yml文件的内容?

from wechat.

xprimes avatar xprimes commented on June 7, 2024

嗯,项目内运行 rails g wechat:install 再执行,wechat就出错了
无论怎么修改 config/wechat.yml 都会直接出错

default: &default
# Or if using public account, only need above two line
 appid: 'wxdc7aaa425156987b'
 secret: ''
 token:  "SQBQirYFxoLCUOF8PXUyuVbvPNTLckk"
 access_token: "/var/tmp/wechat_access_token"

production:
# Or if using public account, only need above two line
#  appid:
#  secret:
  token:      <%= ENV['WECHAT_TOKEN'] %>
  access_token:  <%= ENV['WECHAT_ACCESS_TOKEN'] %>
  encoding_aes_key:  <%= ENV['WECHAT_ENCODING_AES_KEY'] %>

development:
  <<: *default

test:
  <<: *default

from wechat.

Eric-Guo avatar Eric-Guo commented on June 7, 2024

不修改wechat.yml也会出错么?

from wechat.

xprimes avatar xprimes commented on June 7, 2024

是的 ,不修改wechat.yml 也会出错,看出错的堆栈是调用了 deprecate的方法了么?

from wechat.

Eric-Guo avatar Eric-Guo commented on June 7, 2024

升级到rails 4.2.4呢?

from wechat.

xprimes avatar xprimes commented on June 7, 2024

4.2.4可以,Thanks @Eric-Guo

from wechat.

jasper-fu avatar jasper-fu commented on June 7, 2024

在bin/wechat中首先

require 'active_support'

也可以解决这个问题,参考 rails/rails#17936

from wechat.

Eric-Guo avatar Eric-Guo commented on June 7, 2024

感谢@jasper-fu ,已修改。

from wechat.

Eric-Guo avatar Eric-Guo commented on June 7, 2024

0.6.1已经包括这个修正。

from wechat.

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.