PhlexUI / PhlexUI-web

Phlex components for your Rails app
https://www.phlexui.com
32 stars 10 forks source link

Switch to SQLite3, Upgrade Ruby and Rails, Remove Unused Gems, and Add Fly.io Deployment Configuration #89

Closed cirdes closed 1 month ago

cirdes commented 1 month ago

New server: https://rbui.fly.dev

This PR includes the following updates and changes:

  1. Database Switch:

    • Removed PostgreSQL and Redis, and switched to SQLite3 for simpler web stack.
  2. Version Upgrades:

    • Updated Ruby to version 3.3.4.
    • Updated Rails to version 7.2.0.beta3.
  3. Asset Pipeline Update:

    • Removed Sprockets and added Propshaft for managing assets.
  4. Removed Unused Gems:

    • Removed the following unused gems:
      • stripe
      • letter_opener (development group)
      • postmark-rails (used in production)
      • octokit (version ~> 5.0)
      • faraday-retry (version ~> 2.0) - used for API calls failing in the octokit gem
      • rack-www - used to redirect www to non-www subdomain
      • rollbar
  5. Deployment Configuration:

    • Added configuration for deployment on Fly.io.

These changes streamline the project dependencies, simplify development, and prepare the application for deployment on Fly.io.

cirdes commented 1 month ago

@iseth, I have removed the ".tool-versions" file and fixed the comment in the Gemfile.

All other issues you mentioned were generated by the fly.io CLI, and I believe they are recommended by Yarn.

Let me know if you need anything else!

iseth commented 1 month ago

@iseth, I have removed the ".tool-versions" file and fixed the comment in the Gemfile.

All other issues you mentioned were generated by the fly.io CLI, and I believe they are recommended by Yarn.

Let me know if you need anything else!

I dig too deep into this but i think its definetly coming from https://github.com/fly-apps/dockerfile-rails/blob/2711cf5aab3716c3dafd1c08307ee62107a45dda/lib/generators/templates/_npm_install.erb

cirdes commented 1 month ago

@iseth, I have removed .yarn/* and .yarnrc and added them to .gitignore.