Skip to content

Commit 41d3623

Browse files
changes to build
1 parent 2e41276 commit 41d3623

File tree

3 files changed

+158
-66
lines changed

3 files changed

+158
-66
lines changed

src/engine/engine.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export async function run(dir: string,
2525
const slugResult = await heroku.post(`/apps/${site.name}/slugs`, {
2626
body: {
2727
buildpack_provided_description: "heroku/nodejs",
28-
process_types: { "web": `node-v10.16.3-linux-x64/bin/node index.js` }
28+
process_types: { "web": `node-v12.12.0-linux-x64/bin/node index.js` }
2929
}
3030
});
3131
logger.info('Copying Build Files');
@@ -37,7 +37,7 @@ export async function run(dir: string,
3737

3838
await download();
3939
await copy(`${outDir}`, `${dir}/app`);
40-
await moveNodeJS('node-v10.16.3-linux-x64', `${dir}/app/node-v10.16.3-linux-x64`)
40+
await moveNodeJS('node-v12.12.0-linux-x64', `${dir}/app/node-v12.12.0-linux-x64`)
4141
copyFileSync('index.js', `${dir}/app/index.js`);
4242

4343
const tarResponse = await tar.c(
@@ -68,9 +68,9 @@ export async function run(dir: string,
6868
});
6969

7070
logger.info('Deployment Success!');
71-
await remove(`${dir}/app`);
72-
await remove(`${dir}/tmp`);
73-
await remove(`${dir}/slug.tgz`);
71+
// await remove(`${dir}/app`);
72+
// await remove(`${dir}/tmp`);
73+
// await remove(`${dir}/slug.tgz`);
7474
}
7575
catch (error) {
7676
logger.error('❌ An error occurred!');
@@ -80,16 +80,16 @@ export async function run(dir: string,
8080

8181

8282
async function download() {
83-
const res = await fetch('https://nodejs.org/dist/v10.16.3/node-v10.16.3-linux-x64.tar.gz');
83+
const res = await fetch('http://nodejs.org/dist/latest-v12.x/node-v12.12.0-linux-x64.tar.gz');
8484
await new Promise((resolve, reject) => {
85-
const fileStream = createWriteStream('./tmp/node-v10.16.3.tar.gz');
85+
const fileStream = createWriteStream('./tmp/node-v12.12.0-linux-x64.tar.gz');
8686
res.body.pipe(fileStream);
8787
res.body.on("error", (err) => {
8888
reject(err);
8989
});
9090
fileStream.on("finish", function () {
9191
tar.x({
92-
file: './tmp/node-v10.16.3.tar.gz'
92+
file: './tmp/node-v12.12.0-linux-x64.tar.gz'
9393
})
9494
resolve();
9595
});

0 commit comments

Comments
 (0)