diff --git a/cli/index.js b/cli/index.js index 1b908c7..72db60a 100644 --- a/cli/index.js +++ b/cli/index.js @@ -196,7 +196,7 @@ async function configureDotEnv() { } // write everything back to the file system - fs.writeFileSync("../.env", ENV_VARS.join(os.EOL)) + fs.writeFileSync("../backend/.env", ENV_VARS.join(os.EOL)) } if (!fs.existsSync("../backend/.env")) { fs.writeFileSync("../backend/.env", "") @@ -250,7 +250,7 @@ async function init() { execSync("cd ../frontend && yarn install --frozen-lockfile", () => { console.log("yarn install complete (frontend)") }) - if (fs.existsSync(path.join(__dirname, "../.env"))) { + if (fs.existsSync(path.join(__dirname, "../backend/.env"))) { const option = await input.confirm(".env already exists, overwrite?", { default: false }) @@ -300,9 +300,8 @@ async function init() { } } ) - } catch (e) { - console.log(e) - console.log("Users already exist.") + } catch { + console.log("System user already exists.") } console.log("DB templates applied") console.log("Admin user creation") diff --git a/frontend/package.json b/frontend/package.json index 3ad6ecc..1fd89a7 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,6 +1,6 @@ { "name": "colubrina-chat", - "version": "1.0.1", + "version": "1.0.2", "private": true, "author": "Troplo ", "license": "GPL-3.0", diff --git a/frontend/src/components/Header.vue b/frontend/src/components/Header.vue index e116b47..b9e89e7 100644 --- a/frontend/src/components/Header.vue +++ b/frontend/src/components/Header.vue @@ -298,7 +298,7 @@