- Add cssbundling-rails and jsbundling-rails gems for improved asset management. - Create a Procfile for development with separate processes for CSS and JS. - Remove unused jQuery and Bootstrap assets from the application. - Update .gitignore to exclude build artifacts and node_modules. These changes streamline the asset pipeline, allowing for better organization and performance in handling CSS and JS files. The removal of unused assets reduces clutter and potential conflicts in the asset management process.
12 lines
259 B
Bash
Executable File
12 lines
259 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
if gem list --no-installed --exact --silent foreman; then
|
|
echo "Installing foreman..."
|
|
gem install foreman
|
|
fi
|
|
|
|
# Default to port 3000 if not specified
|
|
export PORT="${PORT:-3000}"
|
|
|
|
exec foreman start -f Procfile.dev --env /dev/null "$@"
|