-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from Shipyrd/remove-litestack
Remove litestack and test out solid_cable instead
- Loading branch information
Showing
13 changed files
with
93 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
default: &default | ||
adapter: solid_cable | ||
silence_polling: true | ||
polling_interval: 1 | ||
keep_messages_around_for: 60.minutes | ||
|
||
development: | ||
adapter: litecable | ||
<<: *default | ||
|
||
test: | ||
adapter: test | ||
adapter: inline | ||
|
||
staging: | ||
adapter: litecable | ||
<<: *default | ||
|
||
production: | ||
adapter: litecable | ||
<<: *default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,15 @@ | ||
# SQLite. Versions 3.8.0 and up are supported. | ||
# gem install sqlite3 | ||
# | ||
# Ensure the SQLite 3 gem is defined in your Gemfile | ||
# gem "sqlite3" | ||
# | ||
# `Litesupport.root.join("data.sqlite3")` stores | ||
# application data in the path `./db/#{Rails.env}/data.sqlite3` | ||
# | ||
# `Litesupport.root(env).join(path)` stores | ||
# application data in the path `./db/#{env}/#{path}` | ||
# | ||
# idle_timeout should be set to zero, to avoid recycling sqlite connections | ||
# and losing the page cache | ||
# | ||
default: &default | ||
adapter: litedb | ||
adapter: sqlite3 | ||
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> | ||
idle_timeout: 0 | ||
database: db/<%= Rails.env %>/data.sqlite3 | ||
|
||
development: | ||
<<: *default | ||
database: <%= Litesupport.root("development").join("data.sqlite3") %> | ||
database: db/development/data.sqlite3 | ||
|
||
# Warning: The database defined as "test" will be erased and | ||
# re-generated from your development database when you run "rake". | ||
# Do not set this db to the same as development or production. | ||
test: | ||
<<: *default | ||
database: <%= Litesupport.root("test").join("data.sqlite3") %> | ||
|
||
# Warning: Make sure your production database path is on a persistent | ||
# volume, otherwise your application data could be deleted between deploys. | ||
# | ||
# You may also set the Litesupport.root in production via the | ||
# `LITESTACK_DATA_PATH` environment variable. | ||
production: | ||
<<: *default | ||
database: <%= Litesupport.root("production").join("data.sqlite3") %> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
db/migrate/20240529150202_create_solid_cable_message.solid_cable.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# frozen_string_literal: true | ||
|
||
# This migration comes from solid_cable (originally 20240103034713) | ||
class CreateSolidCableMessage < ActiveRecord::Migration[7.1] | ||
def change | ||
create_table :solid_cable_messages, if_not_exists: true do |t| | ||
t.text :channel | ||
t.text :payload | ||
|
||
t.timestamps | ||
|
||
t.index :created_at | ||
end | ||
end | ||
end |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters