https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35716

David Cook <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #174481|0                           |1
        is obsolete|                            |

--- Comment #28 from David Cook <[email protected]> ---
Created attachment 174483
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=174483&action=edit
Bug 35716: (alternate) Add a "public" directory to Koha and share its "shared"
subdir

This change adds a "public" directory to Koha. Using Apache configuration,
we share "public/shared" as "/shared", which allows us to serve the same
static content for both the OPAC and the staff interface.

At this time, this must be non-translated static assets, such as CSS, vendor
Javascript libraries, images, or other code which does not deal with
translatable strings.

Test plan:
1. Apply the patch and koha-plack --restart kohadev

2. Make sure you're using a correct koha-gitify
NOTE: See https://gitlab.com/koha-community/koha-gitify/-/merge_requests/3
NOTE: Need to modify koha-gitify for rewriting apache-shared-*.conf files
NOTE: 'Alias /shared "/usr/share/koha/public/shared"' => qq#Alias /shared
"$gitcheckout/public/shared"#,

3. Setup Apache configuration
sudo cp debian/templates/apache-shared-opac.conf
/etc/koha/apache-shared-opac.conf
sudo cp debian/templates/apache-shared-intranet.conf
/etc/koha/apache-shared-intranet.conf
sudo rm /etc/koha/apache*git.conf
sudo /kohadevbox/gitify/koha-gitify kohadev /kohadevbox/koha
sudo service apache2 restart

4. Go to http://localhost:8081/shared/.placeholder
Note that there's a file there

5. http://localhost:8080/shared/.placeholder
Note that it's the same file as the staff interface

6. Check Koha installations
--
1. Check a "single" build
NOTE: For simplicity, run the following as the root user:
make clean
rm -rf /opt/kohatest/
INSTALL_MODE=single INSTALL_BASE=/opt/kohatest PERL_MM_USE_DEFAULT=1 perl
Makefile.PL
make
make install

vi /opt/kohatest/etc/koha-httpd.conf
Note that the 'shared' alias is there:
Alias /shared "/opt/kohatest/public/shared"

2. Check a "dev" build
NOTE: For simplicity, run the following as the root user:
make clean
rm -rf /opt/kohatest/
INSTALL_MODE=dev INSTALL_BASE=/opt/kohatest PERL_MM_USE_DEFAULT=1 perl
Makefile.PL
make
make install

vi /opt/kohatest/etc/koha-httpd.conf
Note that the 'shared' alias is there:
Alias /shared "/kohadevbox/koha/public/shared"

3. Check a "standard" build
NOTE: For simplicity, run the following as the root user:
make clean
rm -rf /opt/kohatest/
INSTALL_MODE=standard INSTALL_BASE=/opt/kohatest KOHA_USER=root
PERL_MM_USE_DEFAULT=1 perl Makefile.PL
make
make install

vi /etc/kohatest/koha-httpd.conf
Note that the 'shared' alias is there:
Alias /shared "/opt/kohatest/public/shared"

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to