mirror of
https://github.com/docmost/docmost.git
synced 2025-11-11 12:12:05 +10:00
update envPath code
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
import * as path from 'path';
|
import { join } from 'path';
|
||||||
|
|
||||||
export function generateHostname(name: string): string {
|
export function generateHostname(name: string): string {
|
||||||
let hostname = name.replace(/[^a-z0-9]/gi, '').toLowerCase();
|
let hostname = name.replace(/[^a-z0-9]/gi, '').toLowerCase();
|
||||||
@ -6,4 +6,4 @@ export function generateHostname(name: string): string {
|
|||||||
return hostname;
|
return hostname;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const envPath = path.resolve(process.cwd(), '..', '..', '.env');
|
export const envPath = join(__dirname, '..', '..', '..', '.env');
|
||||||
|
|||||||
Reference in New Issue
Block a user