diff --git a/README.md b/README.md index c951f71..a0b1c41 100644 --- a/README.md +++ b/README.md @@ -84,6 +84,8 @@ AUTO_RESTART=true ENVIRONMENT=prod ``` +To update the bot execute ```git pull``` and ```npm run build``` + 4. Start all: `npm start` ## With docker diff --git a/install.js b/install.js index e4a9d05..356b541 100644 --- a/install.js +++ b/install.js @@ -10,11 +10,11 @@ const install = async () => { await exec('npm install --prefix ' + path.join(__dirname, 'base-types')) await exec('npm run build --prefix ' + path.join(__dirname, 'base-types')) console.log('Installing web') - await exec('npm install --prefix ' + path.join(__dirname, 'web')) + await exec('npm install --prefix ' + path.join(__dirname, 'web') + ' ' + path.join(__dirname, 'base-types', 'base-types-1.0.0.tgz')) console.log('Installing core') - await exec('npm install --prefix ' + path.join(__dirname, 'core')) + await exec('npm install --prefix ' + path.join(__dirname, 'core') + ' ' + path.join(__dirname, 'base-types', 'base-types-1.0.0.tgz')) console.log('Installing server') - await exec('npm install --prefix ' + path.join(__dirname, 'server')) + await exec('npm install --prefix ' + path.join(__dirname, 'server') + ' ' + path.join(__dirname, 'base-types', 'base-types-1.0.0.tgz')) } install() \ No newline at end of file