Changes for Fedora ruby 3.4 and rails 8
This commit is contained in:
@@ -227,6 +227,7 @@ module Qwaiter
|
||||
|
||||
# Custom directories with classes and modules you want to be autoloadable.
|
||||
# config.autoload_paths += %W(#{config.root}/extras)
|
||||
config.autoload_paths << Rails.root.join('app/services').to_s
|
||||
|
||||
# Only load the plugins named here, in the order given (default is alphabetical).
|
||||
# :all can be used as a placeholder for all plugins not explicitly named.
|
||||
@@ -254,7 +255,8 @@ module Qwaiter
|
||||
# Enable escaping HTML in JSON.
|
||||
config.active_support.escape_html_entities_in_json = true
|
||||
|
||||
initializer 'mozo.cmtool', after: 'cmtool.build_menu' do
|
||||
# initializer 'mozo.cmtool', after: 'cmtool.build_menu' do
|
||||
config.after_initialize do
|
||||
Cmtool::Menu.register do
|
||||
before :users do
|
||||
group label: :mozo do # Allow other tools to inject into the mozo menu
|
||||
|
||||
+2
-2
@@ -1,13 +1,13 @@
|
||||
development:
|
||||
validation_framework: :active_model #optional
|
||||
#database: "http://mozo:secret@localhost:5984/qwaiter_development"
|
||||
database: "http://admin:<%= ENV['COUCHDB_ADMIN_PASSWORD']%>@localhost:5984/mozo_development"
|
||||
database: "http://admin:<%= ENV['COUCHDB_ADMIN_PASSWORD']%>@localhost:15984/mozo_development"
|
||||
#database: mozo_development
|
||||
test:
|
||||
validation_framework: :active_model #optional
|
||||
#database: "http://mozo:secret@localhost:5984/qwaiter_test"
|
||||
#Testing can only be done as couchdb admin, since it requires creating and destroying the database
|
||||
database: "http://admin:<%= ENV['COUCHDB_ADMIN_PASSWORD']%>@localhost:5984/mozo_test"
|
||||
database: "http://admin:<%= ENV['COUCHDB_ADMIN_PASSWORD']%>@localhost:15984/mozo_test"
|
||||
# database: "http://admin:secret@localhost:5984/qwaiter_test"
|
||||
production:
|
||||
validation_framework: :active_model #optional
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
module MustacheTemplateHandler
|
||||
def self.call(template, source)
|
||||
binding.pry
|
||||
if template.locals.include? :locals
|
||||
"Mustache.render(#{template.source.inspect}, locals).html_safe"
|
||||
else
|
||||
"#{template.source.inspect}.html_safe"
|
||||
end
|
||||
end
|
||||
end
|
||||
ActionView::Template.register_template_handler(:mustache, MustacheTemplateHandler)
|
||||
ActionController::Base.view_paths << Rails.root.join('app', 'templates')
|
||||
# module MustacheTemplateHandler
|
||||
# def self.call(template, source)
|
||||
# binding.pry
|
||||
# if template.locals.include? :locals
|
||||
# "Mustache.render(#{template.source.inspect}, locals).html_safe"
|
||||
# else
|
||||
# "#{template.source.inspect}.html_safe"
|
||||
# end
|
||||
# end
|
||||
# end
|
||||
# ActionView::Template.register_template_handler(:mustache, MustacheTemplateHandler)
|
||||
# ActionController::Base.view_paths << Rails.root.join('app', 'templates')
|
||||
|
||||
+2
-2
@@ -22,8 +22,8 @@ port ENV.fetch("PORT") { 3001 }
|
||||
environment ENV.fetch("RAILS_ENV") { "development" }
|
||||
|
||||
if ENV['RAILS_ENV'] == 'development'
|
||||
localhost_key = "#{File.join('config', 'certs-local', 'localhost-key.pem')}"
|
||||
localhost_crt = "#{File.join('config', 'certs-local', 'localhost.pem')}"
|
||||
localhost_key = "#{File.join('config', 'certs-local', 'localhost.key')}"
|
||||
localhost_crt = "#{File.join('config', 'certs-local', 'localhost.crt')}"
|
||||
# To be able to use rake etc
|
||||
ssl_bind '0.0.0.0', 3002, {
|
||||
key: localhost_key,
|
||||
|
||||
Reference in New Issue
Block a user