Skip to content

Commit

Permalink
Use env vars to set version strings
Browse files Browse the repository at this point in the history
  • Loading branch information
craigbeck committed Aug 21, 2023
1 parent 8516f49 commit 86006f6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ function App(derby, name, filename, options) {
this.derby = derby;
this.name = name;
this.filename = filename;
this.scriptHash = '{{DERBY_SCRIPT_HASH}}';
this.bundledAt = '{{DERBY_BUNDLED_AT}}';
this.scriptHash = process.env.DERBY_SCRIPT_HASH || '{{DERBY_SCRIPT_HASH}}';
this.bundledAt = process.env.DERBY_BUNDLED_AT || '{{DERBY_BUNDLED_AT}}';
this.buildVersion = process.env.DERBY_BUILD_VERSION;
this.Page = createAppPage(derby);
this.proto = this.Page.prototype;
this.views = new templates.Views();
Expand Down

0 comments on commit 86006f6

Please sign in to comment.