Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
liweitian committed Nov 25, 2019
1 parent bcb6a1a commit 865e790
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Composer/packages/server/src/store/data.template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import fs from 'fs';

import { Path } from '../utility/path';

let defaultPath = process.env.DEFAULT_PATH ? Path.resolve(process.env.DEFAULT_PATH) : process.env.DEFAULT_PATH;
let defaultPath = process.env.DEFAULT_PATH;
if (!defaultPath) {
console.log(`The default path is set to ${Path.join(os.homedir(), 'Documents', 'Composer')}`);
defaultPath = Path.join(os.homedir(), 'Documents', 'Composer');
Expand All @@ -16,6 +16,7 @@ if (!defaultPath) {
);
defaultPath = Path.join(os.homedir(), 'Documents', 'Composer');
}
defaultPath = Path.resolve(defaultPath);
export default {
storageConnections: [
{
Expand Down

0 comments on commit 865e790

Please sign in to comment.