Skip to content

Commit cb178c5

Browse files
committed
Node Version changed
1 parent f285061 commit cb178c5

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/engine/engine.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export async function run(dir: string,
2222
const heroku = new Heroku({ token: options.herokuApiToken });
2323
const result = await heroku.get('/apps');
2424
let site: any = null;
25+
const nodeVersion: string = 'node-v14.0.0-linux-x64';
2526
if (result && result.length > 0) {
2627
site = result.find((app => app.name === options.appName));
2728
}
@@ -34,7 +35,7 @@ export async function run(dir: string,
3435
const slugResult = await heroku.post(`/apps/${site.name}/slugs`, {
3536
body: {
3637
buildpack_provided_description: "heroku/nodejs",
37-
process_types: { "web": `node-v15.6.0-linux-x64/bin/node server.js` }
38+
process_types: { "web": `${nodeVersion}/bin/node server.js` }
3839
}
3940
});
4041

@@ -47,9 +48,9 @@ export async function run(dir: string,
4748

4849
await copy(`${outDir}`, `${dir}/app`);
4950
await tar.x({
50-
file: path.join(__dirname, "../", 'node-v15.6.0-linux-x64.tar')
51+
file: path.join(__dirname, "../", `${nodeVersion}.tar`)
5152
})
52-
await moveNodeJS('node-v15.6.0-linux-x64', `${dir}/app/node-v15.6.0-linux-x64`)
53+
await moveNodeJS(nodeVersion, `${dir}/app/${nodeVersion}`)
5354
copyFileSync(path.join(__dirname, "../", 'server.js'), `${dir}/app/server.js`);
5455
copyFileSync(path.join(__dirname, "../", 'Procfile'), `${dir}/app/Procfile`);
5556

Binary file not shown.

src/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Deployment from the Angular CLI to the file system. This is a sample project that helps you to implement your own deployment builder (`ng deploy`) for the Angular CLI.",
55
"main": "index.js",
66
"scripts": {
7-
"build": "rimraf dist && json2ts deploy/schema.json > deploy/schema.d.ts && tsc && copyfiles README.md builders.json collection.json ng-add/ng-add-schema.json package.json ngx-deploy-starter deploy/schema.json node-v15.6.0-linux-x64.tar Procfile dist",
7+
"build": "rimraf dist && json2ts deploy/schema.json > deploy/schema.d.ts && tsc && copyfiles README.md builders.json collection.json ng-add/ng-add-schema.json package.json ngx-deploy-starter deploy/schema.json node-v14.0.0-linux-x64.tar Procfile dist",
88
"test": "jest",
99
"compile": "tsc -p tsconfig.json"
1010
},

0 commit comments

Comments
 (0)