Skip to content

Commit

Permalink
chore: configure puma to load tailwind
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolastemciuc committed Feb 20, 2025
1 parent c185767 commit 7e72fa4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 18 deletions.
2 changes: 0 additions & 2 deletions Procfile.dev

This file was deleted.

18 changes: 2 additions & 16 deletions bin/dev
Original file line number Diff line number Diff line change
@@ -1,16 +1,2 @@
#!/usr/bin/env sh

if ! gem list foreman -i --silent; then
echo "Installing foreman..."
gem install foreman
fi

# Default to port 3000 if not specified
export PORT="${PORT:-3000}"

# Let the debug gem allow remote connections,
# but avoid loading until `debugger` is called
export RUBY_DEBUG_OPEN="true"
export RUBY_DEBUG_LAZY="true"

exec foreman start -f Procfile.dev "$@"
#!/usr/bin/env ruby
exec "./bin/rails", "server", *ARGV
2 changes: 2 additions & 0 deletions config/puma.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,5 @@

# Only use a pidfile when requested
pidfile ENV["PIDFILE"] if ENV["PIDFILE"]

plugin :tailwindcss if ENV.fetch("RAILS_ENV", "development") == "development"

0 comments on commit 7e72fa4

Please sign in to comment.