Skip to content

Commit

Permalink
chore: Change environment variables from DOCKER_DASH to PLUGSY
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Environment variables have been changed from DOCKER_DASH_ to PLUGSY_
  • Loading branch information
Thomas Nairn authored and Thomas Nairn committed Aug 11, 2021
1 parent 95c9177 commit cf74932
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/agent/src/environment.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export const environment = () => ({
loggingLevel: process.env.DOCKER_DASH_LOGGER_LEVEL ?? "info",
localConfigFile: process.env.DOCKER_DASH_LOCAL_CONFIG_FILE ?? "/config.json",
loggingLevel: process.env.PLUGSY_LOGGER_LEVEL ?? "info",
localConfigFile: process.env.PLUGSY_LOCAL_CONFIG_FILE ?? "/config.json",
});

export type Environment = ReturnType<typeof environment>;
6 changes: 3 additions & 3 deletions packages/core/server/environment.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export const environment = () => ({
get port() {
const envVar = process.env.DOCKER_DASH_PORT;
const envVar = process.env.PLUGSY_PORT;
if (envVar) {
try {
return parseInt(envVar, 10);
Expand All @@ -11,8 +11,8 @@ export const environment = () => ({
return 3000;
},
dev: process.env.NODE_ENV !== "production",
loggingLevel: process.env.DOCKER_DASH_LOGGER_LEVEL ?? "info",
localConfigFile: process.env.DOCKER_DASH_LOCAL_CONFIG_FILE ?? "/config.json",
loggingLevel: process.env.PLUGSY_LOGGER_LEVEL ?? "info",
localConfigFile: process.env.PLUGSY_LOCAL_CONFIG_FILE ?? "/config.json",
});

export type Environment = ReturnType<typeof environment>;

0 comments on commit cf74932

Please sign in to comment.