ztechno_cli 0.0.2 → 0.0.4
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.
|
@@ -49,7 +49,7 @@ async function dockerPublish(opt) {
|
|
|
49
49
|
(0, docker_push_1.dockerPush)({ packagename, awsAccountId, tag });
|
|
50
50
|
// Step 3: Update remote
|
|
51
51
|
console.log(cyan(`\n── Step 3/3: Update Remote ──`));
|
|
52
|
-
const hostname = opt?.hostname || pkg.config?.hostname || process.env.
|
|
52
|
+
const hostname = opt?.hostname || pkg.config?.hostname || process.env.HOSTNAME;
|
|
53
53
|
const port = opt?.port || pkg.config?.port;
|
|
54
54
|
let volumes = opt?.volumes;
|
|
55
55
|
if (!volumes && pkg.config?.volumes) {
|
|
@@ -122,7 +122,7 @@ function loadOptionsFromEnv() {
|
|
|
122
122
|
}
|
|
123
123
|
// Load package.json as fallback
|
|
124
124
|
const pkg = loadPackageJson();
|
|
125
|
-
const hostname = cfg.parsed?.hostname || process.env.
|
|
125
|
+
const hostname = cfg.parsed?.hostname || process.env.HOSTNAME || pkg?.config?.hostname;
|
|
126
126
|
const packagename = cfg.parsed?.packagename || process.env.packagename || pkg?.name;
|
|
127
127
|
const port = cfg.parsed?.port || process.env.port || (pkg?.config?.port != null ? String(pkg.config.port) : undefined);
|
|
128
128
|
const volumesRaw = cfg.parsed?.volumes || process.env.volumes || pkg?.config?.volumes;
|