Skip to content
Extraits de code Groupes Projets
Valider 4cd33a2c rédigé par Claire's avatar Claire Validation de Eugen Rochko
Parcourir les fichiers

Fix "bundle exec rails mastodon:setup" crashing in some circumstances (#16976)

Fix regression from #16896
parent f264cca1
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -350,11 +350,11 @@ namespace :mastodon do ...@@ -350,11 +350,11 @@ namespace :mastodon do
end end
end.join("\n") end.join("\n")
generated_header = "# Generated with mastodon:setup on #{Time.now.utc}\n\n" generated_header = "# Generated with mastodon:setup on #{Time.now.utc}\n\n".dup
if incompatible_syntax if incompatible_syntax
generated_header << "Some variables in this file will be interpreted differently whether you are\n" generated_header << "# Some variables in this file will be interpreted differently whether you are\n"
generated_header << "using docker-compose or not.\n\n" generated_header << "# using docker-compose or not.\n\n"
end end
File.write(Rails.root.join('.env.production'), "#{generated_header}#{env_contents}\n") File.write(Rails.root.join('.env.production'), "#{generated_header}#{env_contents}\n")
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter