mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
(core) fix docker packaging after core shuffle
Summary: The docker image was not building or running correctly after breaking out more material into core. This corrects the necessary paths. Test Plan: tested by building locally with `./contain.sh ./build docker` and running containers in development and production mode. Reviewers: dsagal Reviewed By: dsagal Differential Revision: https://phab.getgrist.com/D2555
This commit is contained in:
parent
a19f19b503
commit
4452a816ff
@ -14,6 +14,7 @@ export const codeRoot = path.dirname(path.dirname(path.dirname(__dirname)));
|
||||
* etc.
|
||||
*/
|
||||
export function getAppRoot(): string {
|
||||
if (process.env.APP_ROOT_PATH) { return process.env.APP_ROOT_PATH; }
|
||||
if (codeRoot.endsWith('/_build/core')) { return path.dirname(path.dirname(codeRoot)); }
|
||||
return codeRoot.endsWith('/_build') ? path.dirname(codeRoot) : codeRoot;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user