25K+/per
酷!~
已经解决了
是我 attr_accessor 里的设置的:phone_number 覆盖了 user model 的 phone_number 字段
不对,是 attr_accessor
insert 的语句里没有 phone_number 字段
控制台 create 是这个样子:
irb(main):001:0> User.create!(login: 'flk', email: '[email protected]', password: '12345678', phone_number: '15627215695')
(1.1ms) SET NAMES utf8, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483
(0.7ms) BEGIN
User Exists (0.9ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY '[email protected]' LIMIT 1
User Exists (0.8ms) SELECT 1 AS one FROM `users` WHERE `users`.`login` = 'flk' LIMIT 1
SQL (0.9ms) INSERT INTO `users` (`login`, `email`, `email_md5`, `created_at`, `updated_at`, `encrypted_password`) VALUES ('flk', '[email protected]', 'dcd3a0511f1f4076d370a38115b80e9d', '2017-12-11 09:57:46', '2017-12-11 09:57:46', '$2a$10$soBsMJi/AFhywSOj1JW2b.o4ce2yU.NB31fHwF8vV9csKk3dd219e')
(2.4ms) COMMIT
Dalli::Server#connect 127.0.0.1:11211
Enqueued ActionMailer::DeliveryJob (Job ID: aa8b6f14-31fa-450e-91e1-c6b5c4b8433f) to Sidekiq(mailers) with arguments: "UserMailer", "welcome", "deliver_now", 1
Enqueued SearchIndexer (Job ID: 152719d7-1e2e-4d40-a389-733857bf96b6) to Sidekiq(search_indexer) with arguments: "index", "User", 1
=> #<User id: 1, login: "flk", name: nil, email: "[email protected]", email_md5: "dcd3a0511f1f4076d370a38115b80e9d", email_public: false, location: nil, location_id: nil, bio: nil, website: nil, company: nil, github: nil, twitter: nil, avatar: nil, verified: false, state: "normal", tagline: nil, created_at: "2017-12-11 09:57:46", updated_at: "2017-12-11 09:57:46", persistence_token: "", single_access_token: "", perishable_token: "", topics_count: 0, replies_count: 0, follower_ids: nil, team_users_count: nil, followers_count: 0, following_count: 0, phone_number: "">
蒂花之秀
GET!
修改 docker-compose.yml
web:
container_name: 'homeland_web'
image: homeland/homeland:3.0.10
links:
- app
- app_backup
- worker
env_file:
- app.default.env
- app.local.env
- app.secret.env
command: nginx -c /etc/nginx/nginx.conf
volumes_from:
- app
ports:
- "80:80"
- "443:443"
改
ports:
-"81:80"
-"445:443"
大佬。请问我在本地模仿生产环境 (nginx , puma , sidkiq,elasticsearch 神马的都启了),然后测试的时候,搜索功能搜不到帖子。我用 docker build 完镜像后,本地跑起来就可以搜。不知道为啥。。。。
厉害
你也在这边?
在我司隔壁。。。
真。大神
好运转起来!
mtu 什么鬼。。
Fork 一下自己改
0.0 今天试了下,推不上去。。。。
如果已经有了自己的 ssl 证书,docker 方式还需要安装证书吗?
什么关键字?
肖董闲暇时不忘论坛发帖。赞一个
大佬女装演讲吗?
就喜欢这样指点,很到位
ruby 问 css?
MD5 什么时候变成加密了。。。。
一样的终端和配色。
工作机会少啊.学这个很尴尬...
win 浪费生命
换机器