|username: <%= Rails.application.credentials[:database][:username] %>|
|password: <%= Rails.application.credentials[:database][:password] %>|
|database: <%= Rails.application.credentials[:database][:dbname] %>_<%= Rails.env %>|
|database: <%= ENV['DATABASE_URL'] %>|
|# At least these refinery gems|
|gem 'refinerycms', git: 'https://github.com/refinery/refinerycms', branch: 'master'|
|gem 'refinerycms-authentication-devise', git: 'https://github.com/refinery/refinerycms-authentication-devise', ref: 'master'|
|gem 'refinerycms-wymeditor', git: 'https://github.com/parndt/refinerycms-wymeditor', branch: 'master'|
Building a new refinerycms site April 2021
gem install refinerycms rails new site -m https://www.refinerycms.com/t/edge
Note: at this point the steps that the install script would take need to be done manually.
rails db:create rails generate refinery:cms --fresh-installation rails webpacker:install rails s
and you should see a webserver start up (probably on port 3000, so you can take your browser to
To login to refinery and make changes, navigate to
If you really want to see the ups and downs to get to the answer above... Note: here I am using postgresql, not mentioned in tldr.
gem install refinerycms rails new site -m https://www.refinerycms.com/t/edge -d postgresql
bundle install failed as it couldn't find suitable gems for rails (3.2) or even bundler.
refinerycms site -fresh-installation -d=postgresql
rails new site -m https://www.refinerycms.com/t/edge
Got a lot further, until it hit a Zeitwerk problem. Now to fix that, and also consider what else I might like to add.
NameError: wrong constant name Refinerycms-authentication-devise /private/var/www/purify/site/config/environment.rb:5:in `<main>'
(p.s. purify because that is what a refinery does.)
The quick answer is to edit
What to do next? How to pick up the Refinerycms install process mid-stream?
Aha! (I needed to edit my
Picking up where the template left off, I ran
which got a little further before running into a genuine problem with Rails 6.1, which we can fix.
I added the following to the Gemfile. Note: this fix is only required until Refinery incorporates it into its own requirements.
gem 'routing-filter', git: 'https://github.com/svenfuchs/routing-filter', branch: 'master'
Webpacker was not installed. So after