Bugzilla – Attachment 165821 Details for
Bug 36546
Bundle API spec to speed up worker startup
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36546: Deploy swagger_bundle.json via make
Bug-36546-Deploy-swaggerbundlejson-via-make.patch (text/plain), 1.93 KB, created by
David Cook
on 2024-04-29 23:46:18 UTC
(
hide
)
Description:
Bug 36546: Deploy swagger_bundle.json via make
Filename:
MIME Type:
Creator:
David Cook
Created:
2024-04-29 23:46:18 UTC
Size:
1.93 KB
patch
obsolete
>From 7a52341b0f8c934c7da572b2bdb82baeb720d338 Mon Sep 17 00:00:00 2001 >From: David Cook <dcook@prosentient.com.au> >Date: Mon, 29 Apr 2024 23:43:40 +0000 >Subject: [PATCH] Bug 36546: Deploy swagger_bundle.json via make > >To test: >0. Apply patch >1a. perl Makefile.PL >1b. Choose "single" Installation mode >1c. Specify /opt/koha directory >2. make >2b. ls blib/API_CGI_DIR/v1/swagger/swagger_bundle.json >3. Ensure you're running as root or make koha user own /opt >4. make install >5. ls /opt/koha/api/v1/swagger/swagger_bundle.json >--- > Makefile.PL | 2 ++ > package.json | 2 +- > 2 files changed, 3 insertions(+), 1 deletion(-) > >diff --git a/Makefile.PL b/Makefile.PL >index 7a0f96a0018..62380aae13a 100644 >--- a/Makefile.PL >+++ b/Makefile.PL >@@ -683,6 +683,8 @@ $file_map->{'koha-tmpl/opac-tmpl/bootstrap/css/print.css'} = 'blib/OPAC_TMPL_DIR > $file_map->{'koha-tmpl/opac-tmpl/bootstrap/css/print-rtl.css'} = 'blib/OPAC_TMPL_DIR/bootstrap/css/print-rtl.css'; > $file_map->{'koha-tmpl/opac-tmpl/bootstrap/css/sco.css'} = 'blib/OPAC_TMPL_DIR/bootstrap/css/sco.css'; > $file_map->{'koha-tmpl/opac-tmpl/bootstrap/css/sco-rtl.css'} = 'blib/OPAC_TMPL_DIR/bootstrap/css/sco-rtl.css'; >+#API_CGI_DIR >+$file_map->{'api/v1/swagger/swagger_bundle.json'} = 'blib/API_CGI_DIR/v1/swagger/swagger_bundle.json'; > > my $pl_files = { > 'rewrite-config.PL' => [ >diff --git a/package.json b/package.json >index b82e123745d..9112e2bc14c 100644 >--- a/package.json >+++ b/package.json >@@ -51,7 +51,7 @@ > "js:watch": "webpack --mode development --watch", > "js:build:prod": "webpack --mode production", > "build": "yarn css:build && yarn js:build && yarn api:bundle", >- "build:prod": "yarn css:build:prod && yarn js:build:prod", >+ "build:prod": "yarn css:build:prod && yarn js:build:prod && yarn api:bundle", > "cypress": "cypress", > "prettier": "prettier", > "api:bundle": "redocly bundle --ext json api/v1/swagger/swagger.yaml --output api/v1/swagger/swagger_bundle.json" >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 36546
:
164520
|
165412
|
165446
|
165449
|
165450
|
165550
|
165581
|
165589
|
165821
|
165828
|
165829
|
165830
|
165831
|
165923
|
165945