You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been working on updating a little script I have for testing out Administrate, where I'll go about creating a bunch of small Rails applications for testing. This has one problem of leaving a lot of unused, potentially clashing Postgres databases sitting around.
Whilst we prefer Postgres (and I don't see a need to generally diverge from this opinion), the way we've implemented lib/install/web.rb stops us from using another database type, for example:
$ rails new app_name \
--suspenders-local \
--skip-rubocop \
--skip-test \
-d=postgresql \
-m=~/projects/thoughtbot/suspenders/lib/install/web.rb
[… snip …]
remove config/initializers/cors.rb
remove config/initializers/new_framework_defaults_8_0.rb
apply /Users/nickcharlton/projects/thoughtbot/suspenders/lib/install/web.rb
in the local project!
The template [/Users/nickcharlton/projects/thoughtbot/suspenders/lib/install/web.rb] could not be loaded. Error:
=== Please use the correct options ===
# Use the latest suspenders release:
rails new <app_name> \
--skip-rubocop \
--skip-test \
-d=postgresql \
-m=https://raw.githubusercontent.com/thoughtbot/suspenders/main/lib/install/web.rb
# OR use the current (possibly unreleased) `main` branch of suspenders:
rails new <app_name> \
--suspenders-main \
--skip-rubocop \
--skip-test \
-d=postgresql \
-m=https://raw.githubusercontent.com/thoughtbot/suspenders/main/lib/install/web.rb
The implementation of lib/install/web.rb looks like this:
Can anyone think of a better way to do that test in options[:database], etc? The intention is to see if we should setup and run our suspenders generator, but it's doing more than that.
The text was updated successfully, but these errors were encountered:
@nickcharlton thank you for bringing this up. We're currently working on an internal project to help us re-evaluate our assumptions when it comes to building new Rails 8 applications, and choosing a database is one of the issues I'm most interested in.
I've been working on updating a little script I have for testing out Administrate, where I'll go about creating a bunch of small Rails applications for testing. This has one problem of leaving a lot of unused, potentially clashing Postgres databases sitting around.
To work around this problem, I considered using SQLite — especially as there's been significant renewed interest in it up to and including Rails 8.0.
Whilst we prefer Postgres (and I don't see a need to generally diverge from this opinion), the way we've implemented
lib/install/web.rb
stops us from using another database type, for example:The implementation of
lib/install/web.rb
looks like this:suspenders/lib/install/web.rb
Lines 25 to 33 in a4a4af0
Can anyone think of a better way to do that test in
options[:database]
, etc? The intention is to see if we should setup and run our suspenders generator, but it's doing more than that.The text was updated successfully, but these errors were encountered: