Eric-Guo / wechat

API, command and message handling for WeChat in Rails
MIT License
1.31k stars 372 forks source link

Could not find generator 'wechat'. #202

Closed mozillo closed 6 years ago

mozillo commented 6 years ago

Gemfile:

source 'https://rubygems.org'

git_source(:github) do |repo_name|
  repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
  "https://github.com/#{repo_name}.git"
end

gem 'rails', '~> 5.1.3'
gem 'mysql2'
gem 'puma', '~> 3.7'

gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 1.3.0'
gem 'turbolinks', '~> 5'
gem 'bootstrap', '~> 4.0.0.beta'
gem 'jquery-rails'
gem 'devise'
gem 'devise-encryptable'
gem 'simple_form'
gem 'font-awesome-rails'
gem 'rubocop', '~> 0.50.0', require: false
gem "high_voltage"
gem 'ckeditor', github: 'galetahub/ckeditor'
gem 'carrierwave'
gem 'mini_magick'
gem 'creek'
gem "paranoia", "~> 2.2"
gem 'bootstrap-datepicker-rails'
gem 'will_paginate', '~> 3.1.0'
gem 'bootstrap-will_paginate'
gem 'alidayu-ruby', require: 'alidayu'
gem 'sidekiq'
gem 'dotenv-rails'
gem 'sinatra', '>= 1.3.0', :require => nil
gem 'redis-namespace'
gem 'redmon', require: false

gem 'omniauth'
gem 'omniauth-openid'
gem "omniauth-wechat-oauth2"
gem "wechat"

group :development, :test do
  gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
  gem 'capybara', '~> 2.13'
  gem 'selenium-webdriver'
end

group :development do
  gem "capistrano", "~> 3.4"
  gem "capistrano-rvm", "~> 0.1.2"
  gem "capistrano-bundler", "~> 1.2.0"
  gem "capistrano-rails", "~> 1.3.0"
  gem 'capistrano3-puma'#, github: "seuros/capistrano-puma"
  gem 'capistrano-sidekiq', '~> 0.10.0'
  gem 'web-console', '>= 3.3.0'
  gem 'spring'
  gem 'spring-watcher-listen', '~> 2.0.0'
end

gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
Eric-Guo commented 6 years ago

https://github.com/goofansu/wechat-starter/blob/master/Gemfile at least this Gemfile works, so I suggest you starting a new rails projects and gradually add gems

Eric-Guo commented 6 years ago

should resolve, I guess? leave the message if still have problems, thx.

qiao2818 commented 6 years ago

Could not find generator 'wechat:install'. run spring stop can solve this problem.