diff --git a/website/docs/intro.md b/website/docs/intro.md index 793923c..158fc00 100644 --- a/website/docs/intro.md +++ b/website/docs/intro.md @@ -19,7 +19,9 @@ const port = ? 7005 : parseInt(process.env.PORT); -const repos = new Git(join(__dirname, '../repo'), { +// before running server, create repo directory on the project path +// does not working '__dirname' in ES6 module +const repos = new Git(process.cwd() + '/repo'), { autoCreate: true, });