Commit 50de2ec9 authored by HQ's avatar HQ
Browse files

Various improvements

parent 4be93c9d
......@@ -45,12 +45,14 @@ unless (-e '/etc/discourse.seeded') {
# https://github.com/lautis/uglifier/issues/127
`perl -pi -e 's/config\.assets\.js_compressor = :uglifier/config.assets.js_compressor = Uglifier.new(:harmony => true)/' /var/discourse/config/environments/production.rb`;
`perl -pi -e 's/Uglifier\.new.comments: :none,.*/Uglifier.new(comments: :none, harmony: true,/' /var/discourse/lib/tasks/assets.rake`;
`perl -pi -e 's/Uglifier\.new.comments: :none,.*/Uglifier.new(comments: :none, :harmony => true,/' /var/discourse/lib/tasks/assets.rake`;
`perl -pi -e 's/Uglifier\.new./Uglifier.new(:harmony => true)./' /var/discourse/lib/tasks/javascript.rake`;
`echo "require 'uglifier'" >> /var/discourse/Gemfile`;
print `cd /var/discourse ; RAILS_ENV=production bundle exec rake db:migrate >> /tmp/discourse.out 2>&1`;
print `cd /var/discourse ; RAILS_ENV=production bundle exec rake assets:precompile >> /tmp/discourse.out 2>&1`;
# We do it twice because, well, Rails...
print `cd /var/discourse ; RAILS_ENV=production bundle exec rake assets:precompile >> /tmp/discourse.out 2>&1`;
my $me_json = `curl -k --silent https://$gw/stabile/users/me`;
my $me_ref = from_json($me_json);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment