Skip to content

Commit

Permalink
Configure static to work with dartsass in govuk-docker
Browse files Browse the repository at this point in the history
  • Loading branch information
AshGDS committed Feb 9, 2024
1 parent 638bc7d commit 48c6fd8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions Procfile.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
web: bin/rails server -p 3000
css: bin/rails dartsass:build && bin/rails dartsass:watch
7 changes: 7 additions & 0 deletions bin/dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env sh
if !(gem list foreman -i --silent); then
echo "Installing foreman..."
gem install foreman
fi
rm -rd ./public/assets/static
exec foreman start -f Procfile.dev "$@"
3 changes: 0 additions & 3 deletions config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@
# Tell Active Support which deprecation messages to disallow.
config.active_support.disallowed_deprecation_warnings = []

# Suppress logger output for asset requests.
config.assets.quiet = true

# Raises error for missing translations.
# config.i18n.raise_on_missing_translations = true

Expand Down

0 comments on commit 48c6fd8

Please sign in to comment.