File tree Expand file tree Collapse file tree 10 files changed +65
-64
lines changed
Expand file tree Collapse file tree 10 files changed +65
-64
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ # frozen_string_literal: true
2+
3+ # => rackup -p 3000
4+
5+ require 'bundler/inline'
6+
7+ gemfile ( true ) do
8+ source 'https://rubygems.org'
9+
10+ gem 'hanami-router'
11+ gem 'webrick'
12+
13+ gem 'tiny_admin' , path : '../../'
14+ end
15+
16+ require 'hanami/router'
17+
18+ require_relative '../tiny_admin_settings'
19+
20+ app = Hanami ::Router . new do
21+ root to : -> ( _env ) { [ 200 , { } , [ 'Root page - go to /admin for TinyAdmin' ] ] }
22+
23+ mount TinyAdmin ::Router , at : '/admin'
24+ end
25+
26+ run app
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11# frozen_string_literal: true
22
3- require 'bundler'
4- Bundler . require
3+ # => ruby app.rb
4+
5+ require 'bundler/inline'
6+
7+ gemfile ( true ) do
8+ source 'https://rubygems.org'
9+
10+ gem 'rails' , '~> 7'
11+ gem 'tiny_admin' , path : '../../'
12+ end
513
614require 'action_controller/railtie'
715require_relative '../tiny_admin_settings'
816
917class RailsApp < Rails ::Application
1018 routes . append do
11- root to : proc { [ 200 , { } , [ 'Root page' ] ] }
19+ root to : proc { [ 200 , { } , [ 'Root page - go to /admin for TinyAdmin ' ] ] }
1220
1321 mount TinyAdmin ::Router => '/admin'
1422 end
1523
24+ config . action_dispatch . show_exceptions = :none
25+ config . active_support . cache_format_version = 7.1
26+ config . consider_all_requests_local = false
1627 config . eager_load = false
1728end
1829
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11# frozen_string_literal: true
22
3- require 'bundler'
4- Bundler . require
3+ # => ruby app.rb
4+
5+ require 'bundler/inline'
6+
7+ gemfile ( true ) do
8+ source 'https://rubygems.org'
9+
10+ gem 'rackup'
11+ gem 'roda'
12+ gem 'tiny_admin' , path : '../../'
13+ end
514
615require_relative '../tiny_admin_settings'
716
817class RodaApp < Roda
918 route do |r |
1019 r . root do
11- 'Root page'
20+ 'Root page - go to /admin for TinyAdmin '
1221 end
1322
1423 r . on 'admin' do
Original file line number Diff line number Diff line change 11# frozen_string_literal: true
22
3+ # => bundle exec ruby app.rb
4+
35require 'bundler'
46Bundler . require
57
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11# frozen_string_literal: true
22
3- require 'bundler'
4- Bundler . require
3+ # => ruby app.rb
4+
5+ require 'bundler/inline'
6+
7+ gemfile ( true ) do
8+ source 'https://rubygems.org'
9+
10+ gem 'rackup'
11+
12+ gem 'tiny_admin' , path : '../../'
13+ end
514
615require_relative '../tiny_admin_settings'
716
You can’t perform that action at this time.
0 commit comments