mirror of
https://github.com/easingthemes/ssh-deploy.git
synced 2025-06-22 12:32:09 +10:00
update helpers
This commit is contained in:
parent
1b6513031e
commit
7306f6bca0
5 changed files with 23 additions and 23 deletions
|
@ -1,6 +1,6 @@
|
|||
const { exec } = require('child_process');
|
||||
|
||||
const { sshServer, githubWorkspace } = require('./inputs');
|
||||
const { privateKey, sshServer, githubWorkspace } = require('./inputs');
|
||||
const { writeToFile } = require('./helpers');
|
||||
|
||||
const remoteCmd = (content, label) => {
|
||||
|
@ -8,7 +8,7 @@ const remoteCmd = (content, label) => {
|
|||
try {
|
||||
writeToFile({ dir: githubWorkspace, filename, content });
|
||||
|
||||
exec(`ssh ${sshServer} 'bash -s' < ${filename}`, (err, data, stderr) => {
|
||||
exec(`ssh -i ${privateKey} ${sshServer} 'bash -s' < ${filename}`, (err, data, stderr) => {
|
||||
if (err) {
|
||||
console.log('⚠️ [CMD] Remote script failed. ', err.message);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue