@bprotsyk/aso-core 2.0.24 → 2.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23,7 +23,7 @@ export declare class ServerUtil {
23
23
  setupCertbot(): Promise<boolean>;
24
24
  setupSSL(email: string, host: string): Promise<void>;
25
25
  refresh(): Promise<boolean>;
26
- deployLandingPage(host: string, username: string, password: string, remotePath: string, files: any): Promise<void>;
26
+ deployLandingPage(host: string, username: string, password: string, remotePath: string, port: 56777, files: any): Promise<void>;
27
27
  generateNginxConfig(domain: string, rootPath: string): Promise<string>;
28
28
  serverConect(IP: string): Promise<boolean>;
29
29
  }
@@ -166,11 +166,11 @@ class ServerUtil {
166
166
  await this.exec(`git stash; rm-rf built; git pull`);
167
167
  return true;
168
168
  }
169
- async deployLandingPage(host, username, password, remotePath, files) {
169
+ async deployLandingPage(host, username, password, remotePath, port, files) {
170
170
  let sftp = new ssh2_sftp_client_1.default();
171
171
  try {
172
172
  //connection to the server via sftp
173
- await sftp.connect({ host, username, password });
173
+ await sftp.connect({ host, username, password, port });
174
174
  // Завантажити файли на сервер
175
175
  for (const file of files) {
176
176
  await sftp.put(Buffer.from(file.content, "base64"), `${remotePath}/${file.name}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bprotsyk/aso-core",
3
- "version": "2.0.24",
3
+ "version": "2.0.25",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "scripts": {
@@ -200,12 +200,13 @@ export class ServerUtil {
200
200
  username: string,
201
201
  password: string,
202
202
  remotePath: string,
203
+ port: 56777,
203
204
  files: any
204
205
  ): Promise<void> {
205
206
  let sftp = new Client();
206
207
  try {
207
208
  //connection to the server via sftp
208
- await sftp.connect({ host, username, password });
209
+ await sftp.connect({ host, username, password, port });
209
210
 
210
211
  // Завантажити файли на сервер
211
212
  for (const file of files) {