Skip to content

Commit 2e41276

Browse files
deleted commented code
1 parent be808e6 commit 2e41276

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

src/engine/engine.ts

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,6 @@ export async function run(dir: string,
2222
const result = await heroku.get('/apps');
2323
const site = result.find((app => app.name === 'ngx-deploy-demo'))
2424

25-
// async function download() {
26-
// const response = await fetch('https://nodejs.org/dist/v10.16.3/node-v10.16.3.tar.gz')
27-
// if (!response.ok) throw new Error(`unexpected response ${response .statusText}`)
28-
// await streamPipeline(response.body, fs.createWriteStream('./app'))
29-
// }
30-
// download()
31-
3225
const slugResult = await heroku.post(`/apps/${site.name}/slugs`, {
3326
body: {
3427
buildpack_provided_description: "heroku/nodejs",
@@ -41,22 +34,12 @@ export async function run(dir: string,
4134
await remove(`${dir}/slug.tgz`);
4235
await ensureDir(`${dir}/app`);
4336
await ensureDir(`${dir}/tmp`);
44-
// fetch('https://nodejs.org/dist/v10.16.3/node-v10.16.3.tar.gz')
45-
// .then(res => {
46-
// const dest = fs.createWriteStream('./tmp/node-v10.16.3.tar.gz');
47-
// res.body.pipe(dest);
48-
// });
37+
4938
await download();
5039
await copy(`${outDir}`, `${dir}/app`);
5140
await moveNodeJS('node-v10.16.3-linux-x64', `${dir}/app/node-v10.16.3-linux-x64`)
5241
copyFileSync('index.js', `${dir}/app/index.js`);
5342

54-
// copyfiles([`${dir}/index.js`, `${dir}/app`], () => {
55-
// console.log('Files copied');
56-
// });
57-
58-
59-
console.log(`${outDir} outdir`);
6043
const tarResponse = await tar.c(
6144
{
6245
gzip: true,

0 commit comments

Comments
 (0)