Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
origosys
stabile-stacks
Commits
ec7ce714
Commit
ec7ce714
authored
Jun 16, 2021
by
HQ
Browse files
Various improvements
parent
4188852d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
discourse/files/stabile-discourse.pl
discourse/files/stabile-discourse.pl
+1
-0
No files found.
discourse/files/stabile-discourse.pl
View file @
ec7ce714
...
...
@@ -46,6 +46,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/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
`;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment