Commit ec97ac8f authored by HQ's avatar HQ
Browse files

Various improvements

parent 0c754948
......@@ -45,7 +45,7 @@ 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`;
`echo "require 'uglifier'" >> /var/discourse/Gemfile`;
print `cd /var/discourse ; RAILS_ENV=production bundle exec rake db:migrate`;
......@@ -68,6 +68,7 @@ unless (-e '/etc/discourse.seeded') {
`chown -R www-data:www-data /var/www`;
`chown -R www-data:www-data /var/discourse`;
`perl -pi -e 's/PrivateTmp=true/PrivateTemp=false/' /lib/systemd/system/apache2.service`;
`systemctl daemon-reload`;
`systemctl restart postfix`;
`systemctl restart apache2`;
`touch /etc/discourse.seeded`;
......
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