before_serveattribute. But that ends up raising an error. I'll keep pushing forward on this but if anyone has any ideas, or sees that I'm missing something simple let me know.
:columnbackend. It seems that the Refinerycms backend always shows the field values based on i18n
default_frontend_locale, which in my case is Finnish. The Refinery backend UI also is always displayed in
default_frontend_locale, which may be related to my question. But the Pages module shows page contents (in Refinerycms backend) in BOTH of my i18n locales (set in i18n initializer with
I am trying to install RefineryCMS to become familiar with it. I have no knowledge or interest in ruby or rails, I just want to run the application. I am using Linux Mint 19.2 and followed the documentation on installing on Ubuntu. This appeared to work until I entered the command
sudo gem install refinerycms
which failed with the error message:
ERROR - failed to build gem native extension
mkmf.rb - can't find header files for ruby at /usr/lib/ruby/include/ruby.h
Naturally the command:
Im trying to create a new refinery application with
$ refinerycms rickrockstar
But I get the following error:
Unable to activate refinerycms-2.1.5, because bundler-2.1.2 conflicts with bundler (>= 1.2.2, < 2.0) (Gem::ConflictError)
Ive updated my bundler package to bundle 2 but to no avail. At the same time when I try to add the refinery gem to nay existing projects I get a lot of dependency issues. any advice is greatly appreciated thank you so much!
I've already done this type of work for an old client, i've created this extension : https://github.com/refinerycms-contrib/refinerycms-multisites
It works but it should be updated to the latest Refinery version
but then some that aren't (user info, inventory, payment info)
In this refinery extension, you can configure which models you want to share between tenants (the logic is done by this gem https://github.com/influitive/apartment) : https://github.com/refinerycms-contrib/refinerycms-multisites/blob/master/lib/generators/refinery/multisites/templates/config/initializers/apartment.rb#L10
I'm unfamiliar with multisites - is this essentially what they are?
I think yes.
And do they use separate database instances per site or some type of composite key for looking up data?
By default, Apartment gem use PostgreSQL schemas : https://github.com/influitive/apartment#notes-on-postgresql. So one database, multiple schemas.