0
0
Fork 0

Autofix Rubocop Rails/RootPathnameMethods (#23760)

This commit is contained in:
Nick Schonning 2023-02-21 19:57:15 -05:00 committed by GitHub
parent 48aeab90f6
commit 8fd3fc404d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 10 additions and 22 deletions

View file

@ -445,7 +445,7 @@ namespace :mastodon do
generated_header << "# using docker-compose or not.\n\n"
end
File.write(Rails.root.join('.env.production'), "#{generated_header}#{env_contents}\n")
Rails.root.join('.env.production').write("#{generated_header}#{env_contents}\n")
if using_docker
prompt.ok 'Below is your configuration, save it to an .env.production file outside Docker:'