File tree 3 files changed +21
-0
lines changed
3 files changed +21
-0
lines changed Original file line number Diff line number Diff line change
1
+ set -e
2
+
3
+ apt-get update -q -q
4
+ apt-get install --yes --force-yes git
5
+
6
+ cd /source
7
+ echo " module.exports = '$( git describe --always --dirty=+) ';" > /source/server/imports/gitversion.js
Original file line number Diff line number Diff line change
1
+ gitversion.js
Original file line number Diff line number Diff line change
1
+ /* eslint-disable global-require */
2
+ /* globals __meteor_runtime_config__ */
3
+
4
+ try {
5
+ // We try to import the file. It should be generated during the build process,
6
+ // exporting the version of the app (like git commit hash).
7
+ // If it is an empty string, set it to null.
8
+ __meteor_runtime_config__ . VERSION = require ( './imports/gitversion.js' ) || null ;
9
+ }
10
+ catch ( error ) {
11
+ // We are ignoring the error.
12
+ __meteor_runtime_config__ . VERSION = null ;
13
+ }
You can’t perform that action at this time.
0 commit comments