diff --git a/Dockerfile b/Dockerfile index 82772e58..8db170ad 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,9 +6,14 @@ RUN apt-get update --yes \ build-essential \ less \ vim \ + curl \ && gem install bundler:'~> 2.5' \ && rm -rf /var/lib/apt/lists/* +RUN curl -fsSL https://bun.sh/install | bash + +ENV PATH="/root/.bun/bin:${PATH}" + ARG RAILS_ENV ARG DATABASE_URL diff --git a/Gemfile b/Gemfile index 5cf40584..e11e0376 100644 --- a/Gemfile +++ b/Gemfile @@ -17,6 +17,7 @@ gem "pry-byebug" gem "pry-rails", "~> 0.3.9" gem "puma", "~> 6.4" gem "rails", "~> 8.0.0.beta1" +gem "redis", "~> 5.3" gem "rexml", ">= 3.3.4" # No direct dependency; added to mitigate a CVE gem "rss" # gem "stimulus-rails" diff --git a/Gemfile.lock b/Gemfile.lock index 90a7f511..0707e410 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -279,6 +279,10 @@ GEM rake (13.2.1) rdoc (6.7.0) psych (>= 4.0.0) + redis (5.3.0) + redis-client (>= 0.22.0) + redis-client (0.22.2) + connection_pool reek (6.3.0) dry-schema (~> 1.13.0) parser (~> 3.3.0) @@ -409,6 +413,7 @@ DEPENDENCIES pry-rails (~> 0.3.9) puma (~> 6.4) rails (~> 8.0.0.beta1) + redis (~> 5.3) reek (~> 6.3) rexml (>= 3.3.4) rspec-rails (~> 6.1) diff --git a/app/assets/builds/.keep b/app/assets/builds/.keep deleted file mode 100644 index e69de29b..00000000 diff --git a/app/services/feed_processor.rb b/app/services/feed_processor.rb index aeec9d00..fb8766ca 100644 --- a/app/services/feed_processor.rb +++ b/app/services/feed_processor.rb @@ -15,7 +15,7 @@ def perform feeds.each do |feed| Importer.new(feed).import Publisher.new(posts: feed.posts.pending).publish - # TBD: HAndle errors + # TBD: Handle errors end end end diff --git a/bun.config.js b/bun.config.js index 46f7647a..0d744c6f 100644 --- a/bun.config.js +++ b/bun.config.js @@ -5,6 +5,7 @@ const config = { sourcemap: "external", entrypoints: ["app/javascript/application.js"], outdir: path.join(process.cwd(), "app/assets/builds"), + // minify: true }; const build = async (config) => {