File tree 5 files changed +30
-11
lines changed
5 files changed +30
-11
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## 2.0.5 - Bug Fixes and a few New Features
4
+
5
+ ### Partially revert 2.0.4, fixing several issues caused by ` conf.yml ` not being loaded at startup.
6
+ This change requires a rebuild of the application when several options under ` appConfig ` are changed.
7
+ Fixes #544 #555
8
+
9
+ ### Several other changes since 2.0.4, including:
10
+ The ` Add New Section ` button on the UI editor now displays if no sections are present. #536
11
+ When using SSL, the server can now redirect from HTTP to HTTPS. This is enabled by default when using SSL. #538
12
+ Section context menus are now accessible on mobile, and will no longer clip off the screen. #541
13
+ Italian translations have been added. #556
14
+
3
15
## :sparkles : 2.0.4 - Dynamic Config Loading [ PR #528 ] ( https://github.com/Lissy93/dashy/pull/528 )
4
16
- ` conf.yml ` is now loaded dynamically and the app now only needs a browser refresh on config change, not a full rebuild!
5
17
Original file line number Diff line number Diff line change 1
- ## :sparkles : Dynamic Config Loading [ PR #528 ] ( https://github.com/Lissy93/dashy/pull/528 )
2
- - ` conf.yml ` is now loaded dynamically and the app now only needs a browser refresh on config change, not a full rebuild!
1
+ ### Partially revert 2.0.4, fixing several issues caused by ` conf.yml ` not being loaded at startup.
2
+ This change requires a rebuild of the application when several options under ` appConfig ` are changed.
3
+ Fixes #544 #555
4
+
5
+ ### Several other changes since 2.0.4, including:
6
+ The ` Add New Section ` button on the UI editor now displays if no sections are present. #536
7
+ When using SSL, the server can now redirect from HTTP to HTTPS. This is enabled by default when using SSL. #538
8
+ Section context menus are now accessible on mobile, and will no longer clip off the screen. #541
9
+ Italian translations have been added. #556
Original file line number Diff line number Diff line change @@ -39,18 +39,16 @@ WORKDIR ${DIRECTORY}
39
39
RUN apk add --no-cache tzdata tini
40
40
41
41
# Copy built application from build phase
42
- COPY --from=BUILD_IMAGE /app/dist/ public/
43
- COPY --from=BUILD_IMAGE /app/node_modules/ node_modules/
44
- COPY services/ services/
45
- COPY src/utils/ src/utils/
46
- COPY package.json yarn.lock server.js ./
42
+ COPY --from=BUILD_IMAGE /app ./
43
+ # Ensure only one version of conf.yml exists
44
+ RUN rm dist/conf.yml
47
45
48
46
# Finally, run start command to serve up the built application
49
47
ENTRYPOINT [ "/sbin/tini" , "--" ]
50
- CMD [ "yarn" , "start" ]
48
+ CMD [ "yarn" , "build-and- start" ]
51
49
52
50
# Expose the port
53
51
EXPOSE ${PORT}
54
52
55
53
# Run simple healthchecks every 5 mins, to check that everythings still great
56
- HEALTHCHECK --interval=5m --timeout=2s --start-period=30s CMD yarn health-check
54
+ HEALTHCHECK --interval=5m --timeout=2s --start-period=30s CMD yarn health-check
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " Dashy" ,
3
- "version" : " 2.0.4 " ,
3
+ "version" : " 2.0.5 " ,
4
4
"license" : " MIT" ,
5
5
"main" : " server" ,
6
6
"author" :
" Alicia Sykes <[email protected] > (https://aliciasykes.com)" ,
Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ import ErrorHandler from '@/utils/ErrorHandler';
16
16
import { applyItemId } from '@/utils/SectionHelpers' ;
17
17
import $store from '@/store' ;
18
18
19
+ import buildConf from '../../public/conf.yml' ;
20
+
19
21
export default class ConfigAccumulator {
20
22
constructor ( ) {
21
23
this . conf = $store . state . remoteConfig ;
@@ -25,7 +27,7 @@ export default class ConfigAccumulator {
25
27
appConfig ( ) {
26
28
let appConfigFile = { } ;
27
29
// Set app config from file
28
- if ( this . conf ) appConfigFile = this . conf . appConfig || { } ;
30
+ if ( this . conf ) appConfigFile = this . conf . appConfig || buildConf . appConfig || { } ;
29
31
// Fill in defaults if anything missing
30
32
let usersAppConfig = defaultAppConfig ;
31
33
if ( localStorage [ localStorageKeys . APP_CONFIG ] ) {
You can’t perform that action at this time.
0 commit comments