fix(core.gbapp): Self-replication on Azure
This commit is contained in:
parent
e82a813433
commit
f64cc4c1a9
1 changed files with 3 additions and 2 deletions
|
@ -319,11 +319,12 @@ export class GBDeployer {
|
||||||
|
|
||||||
public runOnce() {
|
public runOnce() {
|
||||||
const root = 'packages/default.gbui';
|
const root = 'packages/default.gbui';
|
||||||
|
const npm = urlJoin(process.env.PWD, 'node_modules', '.bin', 'npm');
|
||||||
if (!Fs.existsSync(`${root}/build`)) {
|
if (!Fs.existsSync(`${root}/build`)) {
|
||||||
GBLog.info(`Preparing default.gbui (it may take some additional time for the first time)...`);
|
GBLog.info(`Preparing default.gbui (it may take some additional time for the first time)...`);
|
||||||
Fs.writeFileSync(`${root}/.env`, 'SKIP_PREFLIGHT_CHECK=true');
|
Fs.writeFileSync(`${root}/.env`, 'SKIP_PREFLIGHT_CHECK=true');
|
||||||
child_process.execSync('npm install', { cwd: root });
|
child_process.execSync(`${npm} install`, { cwd: root });
|
||||||
child_process.execSync('npm run build', { cwd: root });
|
child_process.execSync(`${npm} run build`, { cwd: root });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue