@kithinji/pod 1.0.26 → 1.0.27
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/dist/main.js +6 -12
- package/dist/main.js.map +2 -2
- package/dist/types/deploy/deploy.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -5026,10 +5026,9 @@ async function createDeployfile(cwd, projectName) {
|
|
|
5026
5026
|
const deployFile = `name: ${projectName}
|
|
5027
5027
|
version: 1.0.0
|
|
5028
5028
|
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
user: &user "ubuntu"
|
|
5029
|
+
deploy_path: &deploy_path "/home/ubuntu/${projectName}"
|
|
5030
|
+
backup_path: &backup_path "/home/ubuntu/backups"
|
|
5031
|
+
user: &user "ubuntu"
|
|
5033
5032
|
|
|
5034
5033
|
shared_operations:
|
|
5035
5034
|
install_docker: &install_docker
|
|
@@ -5116,12 +5115,12 @@ targets:
|
|
|
5116
5115
|
- name: "Navigate to Deploy Path"
|
|
5117
5116
|
type: action
|
|
5118
5117
|
action:
|
|
5119
|
-
command: cd
|
|
5118
|
+
command: cd \${deploy_path}
|
|
5120
5119
|
|
|
5121
5120
|
- name: "Create Pre-deployment Backup"
|
|
5122
5121
|
type: action
|
|
5123
5122
|
action:
|
|
5124
|
-
command: tar -czf
|
|
5123
|
+
command: tar -czf \${backup_path}/backup-$(date +%Y%m%d-%H%M%S).tar.gz .
|
|
5125
5124
|
|
|
5126
5125
|
- name: "Pull Latest Images"
|
|
5127
5126
|
<<: *pull_images
|
|
@@ -5132,11 +5131,6 @@ targets:
|
|
|
5132
5131
|
- name: "Build and Launch"
|
|
5133
5132
|
<<: *build_and_start
|
|
5134
5133
|
|
|
5135
|
-
- name: "Verify Health Status"
|
|
5136
|
-
type: verify
|
|
5137
|
-
verify:
|
|
5138
|
-
command: ! "[ $(docker compose ps --format json | grep -qv 'running\\|healthy') ]"
|
|
5139
|
-
|
|
5140
5134
|
- name: "Maintenance: Cleanup"
|
|
5141
5135
|
type: action
|
|
5142
5136
|
action:
|
|
@@ -6058,7 +6052,7 @@ Deployment Failed: ${err.message}`));
|
|
|
6058
6052
|
// src/main.ts
|
|
6059
6053
|
import chalk2 from "chalk";
|
|
6060
6054
|
var program = new Command();
|
|
6061
|
-
program.name("pod").description("Pod cli tool").version("1.0.
|
|
6055
|
+
program.name("pod").description("Pod cli tool").version("1.0.27");
|
|
6062
6056
|
program.command("new <name>").description("Start a new Orca Project").action(async (name) => {
|
|
6063
6057
|
await addNew(name);
|
|
6064
6058
|
const appDir = path14.resolve(process.cwd());
|