Skip to content

Commit

Permalink
WIP add more tracing capabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
Janell-Huyck committed Dec 2, 2024
1 parent 091a2f5 commit a7e396a
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/front/dashboard.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<i class="fa fa-caret-down float-none"></i>
<% end %></th>
<th class="align-left" style="padding-left: 20px; background-color: black ; color: white">Status</th>
<th class="align-left" style="padding-left: 20px; background-color: black ; color: white""><%= sortable "production_url", "URL" %>
<th class="align-left" style="padding-left: 20px; background-color: black ; color: white"><%= sortable "production_url", "URL" %>
<% if params[:direction] == "asc" || params[:direction] == nil %>
<i class="fa fa-caret-up"></i>
<% else %>
Expand Down
18 changes: 18 additions & 0 deletions config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,24 @@
end
end

Rake::Task["deploy:assets:precompile"].clear_actions

namespace :deploy do
namespace :assets do
desc 'Precompile assets locally and then rsync to web servers'
task :precompile do
on roles(fetch(:assets_roles)) do
within release_path do
with rails_env: fetch(:rails_env) do
execute :bundle, 'exec rake assets:precompile --trace'
end
end
end
end
end
end


Capistrano::DSL.stages.each do |stage|
after stage, 'deploy:confirmation'
end
10 changes: 9 additions & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -112,5 +112,13 @@
config.active_record.dump_schema_after_migration = false

# Change the Uglifier parsing engine
config.assets.js_compressor = Uglifier.new(harmony: true)
config.assets.js_compressor = Uglifier.new(
harmony: true,
mangle: false,
compress: false,
output: {
beautify: true,
comments: :all
}
)
end

0 comments on commit a7e396a

Please sign in to comment.