Skip to content

Commit

Permalink
#23: Quick fix for explore your area page
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanVanDyck committed Jul 31, 2024
1 parent 5ee8d12 commit 0995960
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docker/ala-hub/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@ ARG VERSION=7.0.0
WORKDIR /project
RUN git clone --branch ${VERSION} --depth 1 https://github.com/AtlasOfLivingAustralia/ala-hub.git /project

# TODO: ugly fix for config values being overwritten by ala defaults
# # TODO: ugly fix for config values being overwritten by ala defaults
RUN sed -i '10d' grails-app/conf/application.yml
RUN cat grails-app/conf/application.yml

# TODO: Fix explore your area not loading properly because of global
COPY alaBs.js /project/grails-app/assets/javascripts/alaBs.js

RUN --mount=type=cache,target=/home/gradle/.gradle/caches \
gradle build assemble --no-daemon \
-x test -x integrationTest \
Expand Down
20 changes: 20 additions & 0 deletions docker/ala-hub/alaBs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
var BC_CONF = BC_CONF || {}
if (!BC_CONF.hasOwnProperty('contextPath')) {
BC_CONF.contextPath = ""
}
if (!BC_CONF.hasOwnProperty('locale')) {
BC_CONF.locale = "nl"
}

/*
* This is a manifest file that'll be compiled into alaBs.js, which will include all the files
* listed below.
*
* Any JS file within this directory can be referenced here using a relative path.
*
* You're free to add application-wide styles to this file and they'll appear at the top of the
* compiled file, but it's generally better to create a new file per style scope.
*
* // require bootstrap
//= require hubCore
*/

0 comments on commit 0995960

Please sign in to comment.