Force Rails to not complain about reloading
Same strategy with: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/17810 See: https://stackoverflow.com/a/29710188/1992201 Frankly I don't really understand how this works and I don't really care either. However I tried it and it does the job. To try this, make sure you have pending migrations, and run the server, hit the site. It would tell you that there's pending migrations, and then run migrations, and then hit the site again. Without this patch, Rails would complain that "A copy of ...", with this patch, it works without problems.
This commit is contained in:
parent
e3bf4931de
commit
c11825a2fc
|
@ -170,7 +170,7 @@ module Gitlab
|
|||
ENV['GIT_TERMINAL_PROMPT'] = '0'
|
||||
|
||||
# Gitlab Read-only middleware support
|
||||
config.middleware.insert_after ActionDispatch::Flash, 'Gitlab::Middleware::ReadOnly'
|
||||
config.middleware.insert_after ActionDispatch::Flash, '::Gitlab::Middleware::ReadOnly'
|
||||
|
||||
config.generators do |g|
|
||||
g.factory_bot false
|
||||
|
|
Loading…
Reference in New Issue