Skip to content

Commit

Permalink
Enable assets and change the way we release CSS in production
Browse files Browse the repository at this point in the history
  • Loading branch information
etagwerker committed Aug 1, 2024
1 parent ba5ab41 commit dd3b7a1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
web: bundle exec puma -C config/puma.rb
worker: bundle exec sidekiq -c 2
release: rails assets:precompile
release: bin/rails dartsass:build && bin/rails assets:precompile
14 changes: 14 additions & 0 deletions app/assets/stylesheets/application.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// This is a manifest file that'll be compiled into application.css, which will include all the files
// listed below.
//
// Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
// vendor/assets/stylesheets directory can be referenced here using a relative path.
//
// You're free to add application-wide styles to this file and they'll appear at the bottom of the
// compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
// files in this directory. Styles in this file should be added after the last require_* statement.
// It is generally better to create a new file per style scope.
//
//= require_self
//= require_tree .

@import "bootstrap";

@import "partials/basics";
Expand Down
1 change: 1 addition & 0 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

# Enable serving of images, stylesheets, and JavaScripts from an asset server.
# config.asset_host = "http://assets.example.com"
config.assets.enabled = true
config.assets.compile = false
config.assets.digest = true
config.assets.version = '1.0'
Expand Down

0 comments on commit dd3b7a1

Please sign in to comment.