Homeland docker 镜像安装 homeland 3.8-latest 一路操作后无法访问

shakenbaby216 · 2022年05月14日 · 最后由 shakenbaby216 回复于 2022年05月14日 · 168 次阅读

主机位于内网 IP:192.168.3.105

按照说明写的 app.local.env

RAILS_ENV=production
# RAILS_LOG_TO_STDOUT=true

# Database
DATABASE_URL=postgres://postgres:@postgresql:5432/homeland
# DATABASE_POOL=64
REDIS_URL=redis://redis:6379/1

# App Config
app_name=RKKS
https=false
domain=localhost
[email protected]
modules=home,topic,press,site,note
asset_host=
upload_provider=file
upload_host=

完成后 make install 拉取安装数据库和主镜像等

make start 拉取了 Caddy 并启动

make status

       Name                      Command                                             State                         Ports

homeland_app                 /home/app/homeland/bin/doc ...     Up                         0.0.0.0:32812->7000/tcp
homeland_app_backup   bundle exec puma -C config ...          Up                         0.0.0.0:32814->7001/tcp
homeland_caddy             caddy run --config /etc/ca ...             Up                         2019/tcp, 0.0.0.0:443->443/tcp, 0.0.0.0:80->80/tcp
homeland_postgresql     docker-entrypoint.sh postgres           Up                        0.0.0.0:32809->5432/tcp
homeland_redis              docker-entrypoint.sh redis ...              Up                        0.0.0.0:32810->6379/tcp
homeland_web               /etc/nginx/start                                   Up                        0.0.0.0:8080->80/tcp
homeland_worker          bundle exec sidekiq -C con ...              Up

以上容器中,最后一个 homeland_worker 没有端口显示正常么? 访问 192.168.3.105 无响应。求大神帮忙解决。系统为 ubuntu14.04。

我是全新系统安装。之前用 centos7 也这样,已经折腾 3 天了。 求指教,是不是我错过了哪一步?

git clone https://github.com/ruby-china/homeland-docker.git 的 master 分支

make install log 有几个 warning 以外好像没什么问题

shakenbaby216@ubuntu14:~/homeland-docker$ make install
make[1]: Entering directory `/home/shakenbaby216/homeland-docker'
unable to write 'random state'
SECRET_KEY_BASE=9f633a87e02ff2188c65b66679d44686d92e9b46d3d3bd93961472afccd5c9c9
make[1]: Leaving directory `/home/shakenbaby216/homeland-docker'
Creating network "homeland-docker_default" with the default driver
Pulling postgresql (postgres:9.5-alpine)...
9.5-alpine: Pulling from library/postgres
540db60ca938: Pull complete
a3cb73039552: Pull complete
39855706e49a: Pull complete
6f4fe1a4006b: Pull complete
b21b3b4c0bdb: Pull complete
70c92b0b2be9: Pull complete
5b52784fa069: Pull complete
834277e47072: Pull complete
b41402993a06: Pull complete
Digest: sha256:b1d91bceef1fbbd64ea5d8afc3d257fbc4ffe23c5b3425ccc72b52f9c500fbb6
Status: Downloaded newer image for postgres:9.5-alpine
Pulling redis (redis:4-alpine)...
4-alpine: Pulling from library/redis
cbdbe7a5bc2a: Pull complete
dc0373118a0d: Pull complete
cfd369fe6256: Pull complete
152ffd6a3b24: Pull complete
7c01860f13a3: Pull complete
aa6ecacd3bee: Pull complete
Digest: sha256:aaf7c123077a5e45ab2328b5ef7e201b5720616efac498d55e65a7afbb96ae20
Status: Downloaded newer image for redis:4-alpine
Pulling app (homeland/homeland:3-8-latest)...
3-8-latest: Pulling from homeland/homeland
852e50cd189d: Pull complete
6de4319615e2: Pull complete
150eb06190d1: Pull complete
cf654ff9d9df: Pull complete
0a529f6cf42e: Pull complete
127544480c9c: Pull complete
73f4e727ac7b: Pull complete
9bb9197056ac: Pull complete
76132acf194c: Pull complete
889bda320a67: Pull complete
151f4f7dc3cc: Pull complete
94f53cfec0cf: Pull complete
72755ae5643d: Pull complete
422f482bdd4c: Pull complete
f3c5fb067043: Pull complete
e458953271d5: Pull complete
2134c1c501f1: Pull complete
Digest: sha256:8b74dbb276647d2421b93bfbdc37a888da139ceabef2abbea5963de2338de384
Status: Downloaded newer image for homeland/homeland:3-8-latest
Creating homeland_postgresql ... done
Creating homeland_redis      ... done
Creating homeland-docker_app_run ... done
WARNING: table: "settings" does not exist or not database connection, `Setting.github_api_key` fallback to returns the default value.
WARNING: table: "settings" does not exist or not database connection, `Setting.twitter_api_key` fallback to returns the default value.
WARNING: table: "settings" does not exist or not database connection, `Setting.wechat_api_key` fallback to returns the default value.
WARNING: table: "settings" does not exist or not database connection, `Setting.app_name` fallback to returns the default value.
WARNING: table: "settings" does not exist or not database connection, `Setting.rack_attack` fallback to returns the default value.
WARNING: table: "settings" does not exist or not database connection, `Setting.rack_attack` fallback to returns the default value.
WARNING: table: "settings" does not exist or not database connection, `Setting.modules` fallback to returns the default value.
WARNING: table: "settings" does not exist or not database connection, `Setting.modules` fallback to returns the default value.
WARNING: table: "settings" does not exist or not database connection, `Setting.modules` fallback to returns the default value.
Created database 'homeland'
Creating homeland-docker_app_run ... done
WARNING: table: "settings" does not exist or not database connection, `Setting.github_api_key` fallback to returns the default value.
WARNING: table: "settings" does not exist or not database connection, `Setting.twitter_api_key` fallback to returns the default value.
WARNING: table: "settings" does not exist or not database connection, `Setting.wechat_api_key` fallback to returns the default value.
WARNING: table: "settings" does not exist or not database connection, `Setting.app_name` fallback to returns the default value.
WARNING: table: "settings" does not exist or not database connection, `Setting.rack_attack` fallback to returns the default value.
WARNING: table: "settings" does not exist or not database connection, `Setting.rack_attack` fallback to returns the default value.
WARNING: table: "settings" does not exist or not database connection, `Setting.modules` fallback to returns the default value.
WARNING: table: "settings" does not exist or not database connection, `Setting.modules` fallback to returns the default value.
WARNING: table: "settings" does not exist or not database connection, `Setting.modules` fallback to returns the default value.
I, [2022-05-13T19:28:57.781330 #1]  INFO -- : Migrating to InitPgDb (20160117061547)
== 20160117061547 InitPgDb: migrating =========================================
-- create_table("authorizations", {:force=>:cascade, :id=>:integer})
   -> 0.0471s
-- add_index("authorizations", ["provider", "uid"], {:name=>"index_authorizations_on_provider_and_uid", :using=>:btree})
   -> 0.0544s
-- create_table("comments", {:force=>:cascade, :id=>:integer})
   -> 0.1250s
-- add_index("comments", ["commentable_id"], {:name=>"index_comments_on_commentable_id", :using=>:btree})
   -> 0.0369s
-- add_index("comments", ["commentable_type"], {:name=>"index_comments_on_commentable_type", :using=>:btree})
   -> 0.0333s
-- add_index("comments", ["user_id"], {:name=>"index_comments_on_user_id", :using=>:btree})
   -> 0.0248s
-- create_table("exception_logs", {:force=>:cascade, :id=>:integer})
   -> 0.0961s
-- create_table("locations", {:force=>:cascade, :id=>:integer})
   -> 0.0774s
-- add_index("locations", ["name"], {:name=>"index_locations_on_name", :using=>:btree})
   -> 0.0467s
-- create_table("nodes", {:force=>:cascade, :id=>:integer})
   -> 0.1171s
-- add_index("nodes", ["section_id"], {:name=>"index_nodes_on_section_id", :using=>:btree})
   -> 0.0583s
-- create_table("notes", {:force=>:cascade, :id=>:integer})
   -> 0.0620s
-- add_index("notes", ["user_id"], {:name=>"index_notes_on_user_id", :using=>:btree})
   -> 0.0460s
-- create_table("notifications", {:force=>:cascade, :id=>:integer})
   -> 0.0629s
-- add_index("notifications", ["read"], {:name=>"index_notifications_on_read", :using=>:btree})
   -> 0.0541s
-- add_index("notifications", ["user_id", "read"], {:name=>"index_notifications_on_user_id_and_read", :using=>:btree})
   -> 0.0432s
-- create_table("oauth_access_grants", {:force=>:cascade, :id=>:integer})
   -> 0.0491s
-- add_index("oauth_access_grants", ["token"], {:name=>"index_oauth_access_grants_on_token", :unique=>true, :using=>:btree})
   -> 0.0281s
-- create_table("oauth_access_tokens", {:force=>:cascade, :id=>:integer})
   -> 0.0310s
-- add_index("oauth_access_tokens", ["refresh_token"], {:name=>"index_oauth_access_tokens_on_refresh_token", :unique=>true, :using=>:btree})
   -> 0.0467s
-- add_index("oauth_access_tokens", ["resource_owner_id"], {:name=>"index_oauth_access_tokens_on_resource_owner_id", :using=>:btree})
   -> 0.0665s
-- add_index("oauth_access_tokens", ["token"], {:name=>"index_oauth_access_tokens_on_token", :unique=>true, :using=>:btree})
   -> 0.0316s
-- create_table("oauth_applications", {:force=>:cascade, :id=>:integer})
   -> 0.0473s
-- add_index("oauth_applications", ["owner_id", "owner_type"], {:name=>"index_oauth_applications_on_owner_id_and_owner_type", :using=>:btree})
   -> 0.0361s
-- add_index("oauth_applications", ["uid"], {:name=>"index_oauth_applications_on_uid", :unique=>true, :using=>:btree})
   -> 0.0676s
-- create_table("page_versions", {:force=>:cascade, :id=>:integer})
   -> 0.0757s
-- add_index("page_versions", ["page_id", "version"], {:name=>"index_page_versions_on_page_id_and_version", :using=>:btree})
   -> 0.0285s
-- add_index("page_versions", ["page_id"], {:name=>"index_page_versions_on_page_id", :using=>:btree})
   -> 0.0248s
-- create_table("photos", {:force=>:cascade, :id=>:integer})
   -> 0.1213s
-- create_table("replies", {:force=>:cascade, :id=>:integer})
   -> 0.1241s
-- add_index("replies", ["topic_id"], {:name=>"index_replies_on_topic_id", :using=>:btree})
   -> 0.0280s
-- add_index("replies", ["user_id"], {:name=>"index_replies_on_user_id", :using=>:btree})
   -> 0.0543s
-- create_table("sections", {:force=>:cascade, :id=>:integer})
   -> 0.0622s
-- add_index("sections", ["sort"], {:name=>"index_sections_on_sort", :using=>:btree})
   -> 0.0545s
-- create_table("site_configs", {:force=>:cascade, :id=>:integer})
   -> 0.0686s
-- add_index("site_configs", ["key"], {:name=>"index_site_configs_on_key", :using=>:btree})
   -> 0.0476s
-- create_table("topics", {:force=>:cascade, :id=>:integer})
   -> 0.0709s
-- add_index("topics", ["excellent"], {:name=>"index_topics_on_excellent", :using=>:btree})
   -> 0.0539s
-- add_index("topics", ["last_active_mark"], {:name=>"index_topics_on_last_active_mark", :using=>:btree})
   -> 0.0665s
-- add_index("topics", ["likes_count"], {:name=>"index_topics_on_likes_count", :using=>:btree})
   -> 0.0376s
-- add_index("topics", ["node_id"], {:name=>"index_topics_on_node_id", :using=>:btree})
   -> 0.0330s
-- add_index("topics", ["suggested_at"], {:name=>"index_topics_on_suggested_at", :using=>:btree})
   -> 0.0788s
-- add_index("topics", ["user_id"], {:name=>"index_topics_on_user_id", :using=>:btree})
   -> 0.0760s
-- create_table("users", {:force=>:cascade, :id=>:integer})
   -> 0.0998s
-- add_index("users", ["email"], {:name=>"index_users_on_email", :using=>:btree})
   -> 0.0583s
-- add_index("users", ["location"], {:name=>"index_users_on_location", :using=>:btree})
   -> 0.0367s
-- add_index("users", ["login"], {:name=>"index_users_on_login", :using=>:btree})
   -> 0.0517s
-- add_index("users", ["private_token"], {:name=>"index_users_on_private_token", :using=>:btree})
   -> 0.0851s
== 20160117061547 InitPgDb: migrated (2.8346s) ================================

I, [2022-05-13T19:29:00.635797 #1]  INFO -- : Migrating to UpdateUserNameAllowNull (20160119135131)
== 20160119135131 UpdateUserNameAllowNull: migrating ==========================
-- change_column(:users, :name, :string, {})
   -> 0.0023s
== 20160119135131 UpdateUserNameAllowNull: migrated (0.0031s) =================

I, [2022-05-13T19:29:00.650031 #1]  INFO -- : Migrating to UpdateOauthTokenFieldsLimit (20160119163218)
== 20160119163218 UpdateOauthTokenFieldsLimit: migrating ======================
-- change_column(:oauth_access_tokens, :expires_in, :integer, {:limit=>8})
   -> 0.1652s
-- change_column(:oauth_access_grants, :expires_in, :integer, {:limit=>8})
   -> 0.1572s
== 20160119163218 UpdateOauthTokenFieldsLimit: migrated (0.3245s) =============

I, [2022-05-13T19:29:01.008040 #1]  INFO -- : Migrating to AddIndexesToTable (20160119191013)
== 20160119191013 AddIndexesToTable: migrating ================================
-- add_index(:topics, :deleted_at)
   -> 0.0157s
-- add_index(:topics, [:node_id, :deleted_at])
   -> 0.0393s
-- add_index(:replies, :deleted_at)
   -> 0.0499s
-- add_index(:replies, [:topic_id, :deleted_at])
   -> 0.0665s
-- remove_index(:users, :location, {:name=>"index_users_on_location"})
   -> 0.0064s
-- add_index(:users, :location)
   -> 0.0503s
-- add_index(:nodes, :sort)
   -> 0.0431s
-- add_index(:photos, :user_id)
   -> 0.0482s
== 20160119191013 AddIndexesToTable: migrated (0.3217s) =======================

I, [2022-05-13T19:29:01.358163 #1]  INFO -- : Migrating to CreateSettings (20160126061903)
== 20160126061903 CreateSettings: migrating ===================================
-- create_table(:settings, {:id=>:integer})
   -> 0.4794s
-- add_index(:settings, [:thing_type, :thing_id, :var], {:unique=>true})
   -> 1.9932s
-- drop_table(:site_configs)
   -> 0.0013s
== 20160126061903 CreateSettings: migrated (2.4767s) ==========================

I, [2022-05-13T19:29:03.860334 #1]  INFO -- : Migrating to CreateDevices (20160219075601)
== 20160219075601 CreateDevices: migrating ====================================
-- create_table(:devices, {:id=>:integer})
   -> 0.1503s
-- add_index(:devices, :user_id)
   -> 0.0763s
-- add_index(:devices, [:user_id, :platform])
   -> 0.0849s
== 20160219075601 CreateDevices: migrated (0.3121s) ===========================

I, [2022-05-13T19:29:04.189927 #1]  INFO -- : Migrating to AddUserIdIndexOnNotifications (20160302043713)
== 20160302043713 AddUserIdIndexOnNotifications: migrating ====================
-- remove_index(:notifications, :read)
   -> 0.0064s
-- add_index(:notifications, :user_id)
   -> 0.0461s
== 20160302043713 AddUserIdIndexOnNotifications: migrated (0.0527s) ===========

I, [2022-05-13T19:29:04.257524 #1]  INFO -- : Migrating to CreateNotifications (20160329032533)
== 20160329032533 CreateNotifications: migrating ==============================
-- create_table(:new_notifications, {:id=>:integer})
   -> 0.1593s
-- add_index(:new_notifications, [:user_id, :notify_type])
   -> 0.0226s
-- add_index(:new_notifications, [:user_id])
   -> 0.0383s
== 20160329032533 CreateNotifications: migrated (0.2204s) =====================

I, [2022-05-13T19:29:04.489727 #1]  INFO -- : Migrating to RemoveOldNotifications (20160329091441)
== 20160329091441 RemoveOldNotifications: migrating ===========================
-- drop_table(:notifications)
   -> 0.0019s
== 20160329091441 RemoveOldNotifications: migrated (0.0020s) ==================

I, [2022-05-13T19:29:04.506186 #1]  INFO -- : Migrating to AddClosedAtToTopics (20160518061135)
== 20160518061135 AddClosedAtToTopics: migrating ==============================
-- add_column(:topics, :closed_at, :datetime, {})
   -> 0.0032s
== 20160518061135 AddClosedAtToTopics: migrated (0.0033s) =====================

I, [2022-05-13T19:29:04.532313 #1]  INFO -- : Migrating to RemovePrivateTokenFromUsers (20160518083347)
== 20160518083347 RemovePrivateTokenFromUsers: migrating ======================
-- remove_column(:users, :private_token)
   -> 0.0015s
== 20160518083347 RemovePrivateTokenFromUsers: migrated (0.0017s) =============

I, [2022-05-13T19:29:04.559117 #1]  INFO -- : Migrating to AddTargetToReplies (20160602020013)
== 20160602020013 AddTargetToReplies: migrating ===============================
-- add_column(:replies, :action, :string, {})
   -> 0.0013s
-- add_column(:replies, :target_type, :string, {:after=>:action})
   -> 0.0009s
-- add_column(:replies, :target_id, :string, {:after=>:target_type})
   -> 0.0006s
== 20160602020013 AddTargetToReplies: migrated (0.0031s) ======================

I, [2022-05-13T19:29:04.578458 #1]  INFO -- : Migrating to CreateTeamUsersJoinTable (20160707084438)
== 20160707084438 CreateTeamUsersJoinTable: migrating =========================
-- add_column(:users, :type, :string, {:limit=>20, :after=>:id})
   -> 0.0013s
-- create_table(:team_users, {:id=>:integer})
   -> 0.1319s
-- add_index(:team_users, [:team_id, :user_id], {:unique=>true})
   -> 0.0582s
== 20160707084438 CreateTeamUsersJoinTable: migrated (0.1917s) ================

I, [2022-05-13T19:29:04.777348 #1]  INFO -- : Migrating to AddTeamIdToTopics (20160710111853)
== 20160710111853 AddTeamIdToTopics: migrating ================================
-- add_column(:topics, :team_id, :integer, {})
   -> 0.0014s
-- add_index(:topics, :team_id)
   -> 0.0606s
== 20160710111853 AddTeamIdToTopics: migrated (0.0622s) =======================

I, [2022-05-13T19:29:04.848146 #1]  INFO -- : Migrating to AddLockableToDevise (20160819093756)
== 20160819093756 AddLockableToDevise: migrating ==============================
-- add_column(:users, :failed_attempts, :integer, {:default=>0, :null=>false})
   -> 0.3006s
-- add_column(:users, :unlock_token, :string, {})
   -> 0.0008s
-- add_column(:users, :locked_at, :datetime, {})
   -> 0.0007s
-- add_index(:users, :unlock_token, {:unique=>true})
   -> 0.0556s
== 20160819093756 AddLockableToDevise: migrated (0.3583s) =====================

I, [2022-05-13T19:29:05.242170 #1]  INFO -- : Migrating to AddLevelToOauthApplications (20160826044113)
== 20160826044113 AddLevelToOauthApplications: migrating ======================
-- add_column(:oauth_applications, :level, :integer, {:default=>0, :null=>false})
   -> 0.2180s
== 20160826044113 AddLevelToOauthApplications: migrated (0.2182s) =============

I, [2022-05-13T19:29:05.472572 #1]  INFO -- : Migrating to AddTeamUsersCountToUsers (20160912124102)
== 20160912124102 AddTeamUsersCountToUsers: migrating =========================
-- add_column(:users, :team_users_count, :integer, {})
   -> 0.0016s
-- Reset all teams' team_users counter cache
   -> 0.0154s
== 20160912124102 AddTeamUsersCountToUsers: migrated (0.0179s) ================

I, [2022-05-13T19:29:05.496951 #1]  INFO -- : Migrating to RemoveBodyHtmlField (20161215014636)
== 20161215014636 RemoveBodyHtmlField: migrating ==============================
-- remove_column(:topics, :body_html)
   -> 0.0010s
-- remove_column(:replies, :body_html)
   -> 0.0006s
-- remove_column(:comments, :body_html)
   -> 0.0008s
== 20161215014636 RemoveBodyHtmlField: migrated (0.0027s) =====================

I, [2022-05-13T19:29:05.504809 #1]  INFO -- : Migrating to CreateUserSSO (20161221022846)
== 20161221022846 CreateUserSSO: migrating ====================================
-- create_table(:user_ssos, {:id=>:integer})
   -> 0.1192s
-- add_index(:user_ssos, :uid, {:unique=>true})
   -> 0.0664s
== 20161221022846 CreateUserSSO: migrated (0.1859s) ===========================

I, [2022-05-13T19:29:05.716597 #1]  INFO -- : Migrating to RemoveUnneededIndexes (20161228064225)
== 20161228064225 RemoveUnneededIndexes: migrating ============================
-- remove_index(:devices, {:name=>"index_devices_on_user_id_and_platform"})
   -> 0.0012s
-- remove_index(:page_versions, {:name=>"index_page_versions_on_page_id_and_version"})
   -> 0.0008s
-- remove_index(:replies, {:name=>"index_replies_on_topic_id_and_deleted_at"})
   -> 0.0009s
-- remove_index(:team_users, {:name=>"index_team_users_on_team_id_and_user_id"})
   -> 0.0010s
-- remove_index(:topics, {:name=>"index_topics_on_node_id"})
   -> 0.0009s
-- remove_index(:new_notifications, {:name=>"index_new_notifications_on_user_id_and_notify_type"})
   -> 0.0007s
== 20161228064225 RemoveUnneededIndexes: migrated (0.0060s) ===================

I, [2022-05-13T19:29:05.729357 #1]  INFO -- : Migrating to AddTextPatternOptsToUsers (20161230094832)
== 20161230094832 AddTextPatternOptsToUsers: migrating ========================
-- change_column(:users, :login, :string, {:limit=>100})
   -> 0.2282s
-- change_column(:users, :name, :string, {:limit=>100})
   -> 0.2558s
-- add_index(:users, "lower(login) varchar_pattern_ops")
   -> 0.0431s
-- add_index(:users, "lower(name) varchar_pattern_ops")
   -> 0.0583s
== 20161230094832 AddTextPatternOptsToUsers: migrated (0.5860s) ===============

I, [2022-05-13T19:29:06.343427 #1]  INFO -- : Migrating to CreateActions (20170204090209)
== 20170204090209 CreateActions: migrating ====================================
-- create_table(:actions, {:id=>:integer})
   -> 0.0634s
-- add_index(:actions, [:user_type, :user_id, :action_type])
   -> 0.0749s
-- add_index(:actions, [:target_type, :target_id, :action_type])
   -> 0.0497s
-- add_column(:users, :followers_count, :integer, {:default=>0})
   -> 0.2870s
-- add_column(:users, :following_count, :integer, {:default=>0})
   -> 0.3784s
== 20170204090209 CreateActions: migrated (0.8540s) ===========================

I, [2022-05-13T19:29:07.206360 #1]  INFO -- : Migrating to RemoveArrayActionFields (20170207141208)
== 20170207141208 RemoveArrayActionFields: migrating ==========================
-- remove_column(:users, :following_ids)
   -> 0.0013s
-- remove_column(:users, :blocked_user_ids)
   -> 0.0008s
-- remove_column(:users, :blocked_node_ids)
   -> 0.0008s
-- remove_column(:users, :favorite_topic_ids)
   -> 0.0007s
-- remove_column(:topics, :liked_user_ids)
   -> 0.0007s
-- remove_column(:topics, :follower_ids)
   -> 0.0007s
-- remove_column(:replies, :liked_user_ids)
   -> 0.0006s
== 20170207141208 RemoveArrayActionFields: migrated (0.0063s) =================

I, [2022-05-13T19:29:07.218105 #1]  INFO -- : Migrating to CreateExceptionTrackLogs (20170217050010)
== 20170217050010 CreateExceptionTrackLogs: migrating =========================
-- create_table(:exception_tracks, {:id=>:integer})
   -> 0.0239s
-- drop_table(:exception_logs)
   -> 0.0011s
== 20170217050010 CreateExceptionTrackLogs: migrated (0.0252s) ================

I, [2022-05-13T19:29:07.262358 #1]  INFO -- : Migrating to AddReplyToIdToReplies (20170222062457)
== 20170222062457 AddReplyToIdToReplies: migrating ============================
-- add_column(:replies, :reply_to_id, :integer, {})
   -> 0.0014s
== 20170222062457 AddReplyToIdToReplies: migrated (0.0015s) ===================

I, [2022-05-13T19:29:07.275832 #1]  INFO -- : Migrating to RemoveBadFieldsFromUsers (20170224074052)
== 20170224074052 RemoveBadFieldsFromUsers: migrating =========================
-- remove_column(:users, :co)
   -> 0.0013s
-- remove_column(:users, :qq)
   -> 0.0007s
== 20170224074052 RemoveBadFieldsFromUsers: migrated (0.0023s) ================

I, [2022-05-13T19:29:07.283382 #1]  INFO -- : Migrating to RemoveHrFields (20170302084611)
== 20170302084611 RemoveHrFields: migrating ===================================
-- remove_column(:users, :hr)
   -> 0.0012s
== 20170302084611 RemoveHrFields: migrated (0.0014s) ==========================

I, [2022-05-13T19:29:07.289881 #1]  INFO -- : Migrating to AddLastReplyIdIndexToTopics (20180316113342)
== 20180316113342 AddLastReplyIdIndexToTopics: migrating ======================
-- add_index(:topics, :last_reply_id)
   -> 0.0174s
== 20180316113342 AddLastReplyIdIndexToTopics: migrated (0.0176s) =============

I, [2022-05-13T19:29:07.329031 #1]  INFO -- : Migrating to RenameNotificationsTableName (20180316130855)
== 20180316130855 RenameNotificationsTableName: migrating =====================
-- rename_table(:new_notifications, :notifications)
   -> 0.0078s
== 20180316130855 RenameNotificationsTableName: migrated (0.0079s) ============

I, [2022-05-13T19:29:07.343556 #1]  INFO -- : Migrating to ChangeTopicsExcellentToGrade (20180614093642)
== 20180614093642 ChangeTopicsExcellentToGrade: migrating =====================
-- rename_column(:topics, :excellent, :grade)
   -> 0.0089s
== 20180614093642 ChangeTopicsExcellentToGrade: migrated (0.0102s) ============

I, [2022-05-13T19:29:07.359226 #1]  INFO -- : Migrating to AddConfidentialToApplications (20180912075805)
== 20180912075805 AddConfidentialToApplications: migrating ====================
-- add_column(:oauth_applications, :confidential, :boolean, {:null=>false, :default=>true})
   -> 0.1981s
== 20180912075805 AddConfidentialToApplications: migrated (0.1983s) ===========

I, [2022-05-13T19:29:07.572089 #1]  INFO -- : Migrating to UpgradeUserState (20200213140928)
== 20200213140928 UpgradeUserState: migrating =================================
-- execute("      UPDATE users SET state = 3 WHERE verified = true\n")
   -> 0.0017s
== 20200213140928 UpgradeUserState: migrated (0.0019s) ========================

I, [2022-05-13T19:29:07.584407 #1]  INFO -- : Migrating to AddUniqueIndexToUsers (20200213155459)
== 20200213155459 AddUniqueIndexToUsers: migrating ============================
-- execute("DELETE FROM users u WHERE u.id NOT IN (SELECT MIN(id) FROM users GROUP BY login)\n")
   -> 0.0014s
-- execute("DELETE FROM users u WHERE u.id NOT IN (SELECT MIN(id) FROM users GROUP BY email)\n")
   -> 0.0008s
-- remove_index(:users, :login)
   -> 0.0053s
-- remove_index(:users, :email)
   -> 0.0044s
-- add_index(:users, :login, {:unique=>true})
   -> 0.0146s
-- add_index(:users, :email, {:unique=>true})
   -> 0.0353s
== 20200213155459 AddUniqueIndexToUsers: migrated (0.0624s) ===================

I, [2022-05-13T19:29:07.674448 #1]  INFO -- : Migrating to RemoveVerifiedFromUsers (20200331102233)
== 20200331102233 RemoveVerifiedFromUsers: migrating ==========================
-- remove_column(:users, :verified)
   -> 0.0013s
== 20200331102233 RemoveVerifiedFromUsers: migrated (0.0014s) =================

I, [2022-05-13T19:29:07.692956 #1]  INFO -- : Migrating to CreateSearchDocuments (20200717154057)
== 20200717154057 CreateSearchDocuments: migrating ============================
-- create_table(:search_documents, {})
   -> 0.0405s
-- add_index(:search_documents, [:searchable_type, :searchable_id], {:unique=>true})
   -> 0.0481s
-- add_index(:search_documents, :tokens, {:using=>"gin"})
   -> 0.0012s
== 20200717154057 CreateSearchDocuments: migrated (0.0902s) ===================

I, [2022-05-13T19:29:07.806771 #1]  INFO -- : Migrating to CreateProfiles (20200721020514)
== 20200721020514 CreateProfiles: migrating ===================================
-- create_table(:profiles, {})
   -> 0.0456s
-- add_index(:profiles, :user_id, {:unique=>true})
   -> 0.0367s
== 20200721020514 CreateProfiles: migrated (0.0825s) ==========================

I, [2022-05-13T19:29:07.898415 #1]  INFO -- : Migrating to MigrateProfileData (20200721022652)
== 20200721022652 MigrateProfileData: migrating ===============================
-- Migration profile_fields...
   -> 0.0074s
-- Migration reward_fields...
   -> 0.0014s
== 20200721022652 MigrateProfileData: migrated (0.0089s) ======================

I, [2022-05-13T19:29:07.914133 #1]  INFO -- : Migrating to AddPreferencesToProfiles (20201016074728)
== 20201016074728 AddPreferencesToProfiles: migrating =========================
-- add_column(:profiles, :preferences, :jsonb, {:default=>{}, :null=>false})
   -> 0.1246s
== 20201016074728 AddPreferencesToProfiles: migrated (0.1247s) ================

I, [2022-05-13T19:29:08.049321 #1]  INFO -- : Migrating to RemoveNodeNameFromTopics (20201119010515)
== 20201119010515 RemoveNodeNameFromTopics: migrating =========================
-- remove_column(:topics, :node_name)
   -> 0.0010s
== 20201119010515 RemoveNodeNameFromTopics: migrated (0.0011s) ================

I, [2022-05-13T19:29:08.059758 #1]  INFO -- : Migrating to RemoveFollowerIdsFromUsers (20201221082655)
== 20201221082655 RemoveFollowerIdsFromUsers: migrating =======================
-- remove_column(:users, :follower_ids)
   -> 0.0015s
== 20201221082655 RemoveFollowerIdsFromUsers: migrated (0.0016s) ==============

Creating homeland-docker_app_run ... done


需要 登录 后方可回复, 如果你还没有账号请 注册新账号