🔧 Fix variable scope issue by reassigning config outside of try block
This commit is contained in:
@@ -277,10 +277,11 @@ async function deploy() {
|
|||||||
const ssh = new NodeSSH();
|
const ssh = new NodeSSH();
|
||||||
let previousImage = null;
|
let previousImage = null;
|
||||||
let containerExisted = false;
|
let containerExisted = false;
|
||||||
|
let config = null;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// Parse arguments
|
// Parse arguments
|
||||||
const config = parseArgs();
|
config = parseArgs();
|
||||||
const isLocal = config.target === 'local';
|
const isLocal = config.target === 'local';
|
||||||
const sshConfig = SSH_HOSTS[config.target];
|
const sshConfig = SSH_HOSTS[config.target];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user