Skip to content

Commit

Permalink
Merge pull request #622 from derbyjs/script-hash-env-var
Browse files Browse the repository at this point in the history
Use env vars to set version strings
  • Loading branch information
craigbeck authored Aug 23, 2023
2 parents 8516f49 + 86006f6 commit 33a4d7f
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 33a4d7f

Please sign in to comment.