diff --git a/README.md b/README.md index 4c6aa97e4..3a92c4572 100644 --- a/README.md +++ b/README.md @@ -17,8 +17,7 @@ Ontime is an application for creating and managing event running order and timer The user inputs a list of events along with scheduling and event information. This will then populate a series of screens which are available to be rendered by any device in the Network. -This makes for a simple and cheap way to distribute over a venue using a network infrastructure instead of video -outputs. +This makes for a simple and cheap way to distribute over a venue using a network infrastructure instead of video outputs. ![App Window](https://github.com/cpvalente/ontime/blob/master/.github/aux-images/app.png) @@ -39,7 +38,7 @@ You can then use the menu in the top left corner to select the desired view. The menu will be initially hidden until there is mouse interaction. In the case of unattended machines or automation, it is possible to use different URL to recall -individual views and extend view settings using the URL aliases feature +individual views and extend view settings using the URL presets feature ``` For the presentation views diff --git a/apps/server/src/setup/index.ts b/apps/server/src/setup/index.ts index a0b3241cd..085d79cfe 100644 --- a/apps/server/src/setup/index.ts +++ b/apps/server/src/setup/index.ts @@ -52,7 +52,9 @@ if (import.meta.url) { } // path to server src folder -export const srcDirectory = path.join(dirname(__dirname), '../'); +const currentDir = dirname(__dirname); +// locally we are in src/setup, in the production build, this is a single file at src +export const srcDirectory = isProduction ? currentDir : path.join(currentDir, '../'); // resolve path to external const productionPath = path.join(srcDirectory, '../../resources/extraResources/client'); @@ -104,7 +106,6 @@ export const pathToStartDb = isTest ? join(srcDirectory, '..', config.database.testdb, config.database.filename) : join(srcDirectory, '/preloaded-db/', config.database.filename); -// TODO: move all static files to the external directory // path to public styles export const resolveStylesDirectory = join(externalsStartDirectory, config.styles.directory); export const resolveStylesPath = join(resolveStylesDirectory, config.styles.filename);