mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
DEV: Add rake task to install a theme from an archive (#18890)
This commit is contained in:
parent
4542bf4fef
commit
6f48502dd2
@ -52,6 +52,12 @@ task "themes:install" => :environment do |task, args|
|
||||
end
|
||||
end
|
||||
|
||||
desc "Install themes & theme components from an archive"
|
||||
task "themes:install:archive" => :environment do |task, args|
|
||||
filename = ENV["THEME_ARCHIVE"]
|
||||
RemoteTheme.update_zipped_theme(filename, File.basename(filename))
|
||||
end
|
||||
|
||||
def update_themes
|
||||
Theme.includes(:remote_theme).where(enabled: true, auto_update: true).find_each do |theme|
|
||||
begin
|
||||
|
Loading…
x
Reference in New Issue
Block a user