@ossy/deployment-tools 0.0.91 → 0.0.92

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/README.md CHANGED
@@ -73,6 +73,16 @@ journalctl -u deployment-tools.service -n 200 -f
73
73
  journalctl -u caddy-route53.service -n 200 -f
74
74
  ```
75
75
 
76
+ **Upgrade deployment-tools server version**
77
+
78
+ - 1 release new version of the npm package with `npm publish`
79
+ - 2 ssh into the instance with `ssh -i path/to/keys ubuntu@<ip>`
80
+ - 3 stop the deployment-tools services with `sudo systemctl stop deployment-tools.service`
81
+ - 4 remove the old version of the tool woth `rm -rf ~/.npm/_npx`
82
+ - 5 start the deployment-tools services again with `sudo systemctl start deployment-tools.service`
83
+
84
+ That's it, the service will download the latest version of the package.
85
+
76
86
  **Update Nodejs on the server**
77
87
  ```
78
88
  # Remove old NodeSource repository if it exists
@@ -87,14 +97,4 @@ sudo apt-get install -y nodejs
87
97
  # Verify the installation
88
98
  node --version
89
99
  npm --version
90
- ```
91
-
92
- **Upgrade deployment-tools server version**
93
-
94
- - 1 release new version of the npm package with `npm publish`
95
- - 2 ssh into the instance with `ssh -i path/to/keys ubuntu@<ip>`
96
- - 3 stop the deployment-tools services with `sudo systemctl stop deployment-tools.service`
97
- - 4 remove the old version of the tool woth `rm -rf ~/.npm/_npx`
98
- - 5 start the deployment-tools services again with `sudo systemctl start deployment-tools.service`
99
-
100
- That's it, the service will download the latest version of the package.
100
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ossy/deployment-tools",
3
- "version": "0.0.91",
3
+ "version": "0.0.92",
4
4
  "description": "Collection of scripts and tools to aid deployment of containers and static files to Amazon Web Services through GitHub Actions",
5
5
  "source": "./src/index.js",
6
6
  "main": "./src/index.js",
@@ -3,8 +3,9 @@ const { logInfo, logError, logDebug, logErrorAndReject } = require('../log')
3
3
 
4
4
  const exec = command => new Promise((resolve, reject) => {
5
5
  execBash(command, (error, stdout, stderr) => {
6
- if (error || stderr) return reject({ error, stderr })
7
- // if (stderr) return reject(stderr)
6
+ logInfo({ message: `[DockerService] ${stderr}` })
7
+
8
+ if (error) return reject({ error, stderr })
8
9
  resolve(stdout, stderr)
9
10
  })
10
11
  })