Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mastodon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pierre Boudes
mastodon
Commits
f714e24f
Unverified
Commit
f714e24f
authored
2 years ago
by
Claire
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix redis configuration not being changed by mastodon:setup (#18383)
Fixes #18342
parent
2b8dc58b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/tasks/mastodon.rake
+8
-0
8 additions, 0 deletions
lib/tasks/mastodon.rake
with
8 additions
and
0 deletions
lib/tasks/mastodon.rake
+
8
−
0
View file @
f714e24f
...
...
@@ -8,6 +8,14 @@ namespace :mastodon do
prompt
=
TTY
::
Prompt
.
new
env
=
{}
# When the application code gets loaded, it runs `lib/mastodon/redis_configuration.rb`.
# This happens before application environment configuration and sets REDIS_URL etc.
# These variables are then used even when REDIS_HOST etc. are changed, so clear them
# out so they don't interfer with our new configuration.
ENV
.
delete
(
'REDIS_URL'
)
ENV
.
delete
(
'CACHE_REDIS_URL'
)
ENV
.
delete
(
'SIDEKIQ_REDIS_URL'
)
begin
prompt
.
say
(
'Your instance is identified by its domain name. Changing it afterward will break things.'
)
env
[
'LOCAL_DOMAIN'
]
=
prompt
.
ask
(
'Domain name:'
)
do
|
q
|
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment