Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Secret #106

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,27 @@ Schrödinger's cat - Ruby on Rails
* `config/database.yml` database names and the database user/password
* load the database from schema
* `rake db:schema:load`
* Carrierwave credentials
* copy the carrierwave file
* `cp config/initializers/carrierwave.rb.example config/initializers/carrierwave.rb`
* configure the carrierwave criteria
* `config/initializers/carrierwave.rb' Upyun is suggested. You can also use local file system
* run
* `rails server`

## Dev Guide
* User System
* Use devise for user authentication
* 用户登录系统包
* `gem 'devise'`
* Database
* Use mysql for database
* mysql包
* `gem 'mysql2'`
* ubuntu
* `sudo apt-get install mysql-client libmysqlclient-dev`
* Mail System
* `gem 'tlsmail'`
* `config/environments/development.rb` set up the third party oauth2 logins
* sending mail from smtp mail servers用来发smtp邮件
* sending mail from smtp mail servers
* SNS Auth
* `gem 'omniauth'`
* `gem 'omniauth-weibo-oauth2'`
Expand Down
7 changes: 0 additions & 7 deletions config/initializers/carrierwave.rb

This file was deleted.

8 changes: 7 additions & 1 deletion config/initializers/carrierwave.rb.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,10 @@ CarrierWave.configure do |config|
config.upyun_password = '密码'
config.upyun_bucket = "空间名"
config.upyun_bucket_domain = "空间名.b0.upaiyun.com 或 使用你独立配置的域名"
end
end

/*CarrierWave.configure do |config|
config.permissions = 0666
config.directory_permissions = 0777
config.storage = :file
end*/