@webhikers/cli 1.1.15 → 1.1.17
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.
- package/package.json +1 -1
- package/src/commands/create.js +6 -8
package/package.json
CHANGED
package/src/commands/create.js
CHANGED
|
@@ -148,6 +148,10 @@ export async function createCommand(name) {
|
|
|
148
148
|
});
|
|
149
149
|
const projectUuid = project.uuid;
|
|
150
150
|
|
|
151
|
+
console.log(c.dim(" Reading compose file..."));
|
|
152
|
+
const composeContent = readFileSync(resolve(projectDir, "docker-compose.yaml"), "utf-8");
|
|
153
|
+
const composeBase64 = Buffer.from(composeContent).toString("base64");
|
|
154
|
+
|
|
151
155
|
console.log(c.dim(" Creating application..."));
|
|
152
156
|
const app = await coolifyApi(config, "POST", "/applications/private-github-app", {
|
|
153
157
|
project_uuid: projectUuid,
|
|
@@ -158,19 +162,13 @@ export async function createCommand(name) {
|
|
|
158
162
|
git_branch: "master",
|
|
159
163
|
build_pack: "dockercompose",
|
|
160
164
|
ports_exposes: "3000",
|
|
161
|
-
instant_deploy: false,
|
|
162
|
-
});
|
|
163
|
-
const appUuid = app.uuid;
|
|
164
|
-
|
|
165
|
-
console.log(c.dim(` Loading compose file and setting domain...`));
|
|
166
|
-
const composeContent = readFileSync(resolve(projectDir, "docker-compose.yaml"), "utf-8");
|
|
167
|
-
const composeBase64 = Buffer.from(composeContent).toString("base64");
|
|
168
|
-
await coolifyApi(config, "PATCH", `/applications/${appUuid}`, {
|
|
169
165
|
docker_compose_raw: composeBase64,
|
|
170
166
|
docker_compose_domains: [
|
|
171
167
|
{ name: "app", domain: `https://${domain}` },
|
|
172
168
|
],
|
|
169
|
+
instant_deploy: true,
|
|
173
170
|
});
|
|
171
|
+
const appUuid = app.uuid;
|
|
174
172
|
|
|
175
173
|
console.log(c.dim(" Setting environment variables..."));
|
|
176
174
|
await coolifyApi(config, "POST", `/applications/${appUuid}/envs`, {
|