Skip to content

Instantly share code, notes, and snippets.

@aaronrussell
Last active August 29, 2015 14:27
Show Gist options
  • Save aaronrussell/a696bfb1692fb16ad05d to your computer and use it in GitHub Desktop.
Save aaronrussell/a696bfb1692fb16ad05d to your computer and use it in GitHub Desktop.
Refresh embeds on discourse
cd /var/discourse
sudo ./launcher enter app
cd /var/www/discourse
rails c
TopicEmbed.all.each { |e| TopicEmbed.import_remote(e.topic.user, e.embed_url) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment