@ossy/deployment-tools 0.0.4 → 0.0.5

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/index.js CHANGED
@@ -28854,6 +28854,7 @@ class ContainerManagerCommands {
28854
28854
 
28855
28855
 
28856
28856
 
28857
+
28857
28858
  const [_, __, command, ...restArgs] = process.argv
28858
28859
 
28859
28860
  const startHandler = () => {
@@ -28874,7 +28875,9 @@ Description=D
28874
28875
  After=network.target
28875
28876
 
28876
28877
  [Service]
28877
- Environment=DEPLOYMENT_TOOLS_PORT=3000
28878
+ Environment=DEPLOYMENT_TOOLS_DOMAIN=${domain}
28879
+ Environment=DEPLOYMENT_TOOLS_SUBDOMAIN=${subdomain}
28880
+ Environment=DEPLOYMENT_TOOLS_PORT=${port}
28878
28881
  User=root
28879
28882
  ExecStart=npx @ossy/deployment-tools start-container-manager
28880
28883
  Restart=on-failure
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ossy/deployment-tools",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "Collection of scripts and tools to aid deployment of containers and static files",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
package/src/index.js CHANGED
@@ -5,6 +5,7 @@ import { exec } from 'child_process'
5
5
  import arg from 'arg'
6
6
  import { ContainerManagerServer } from './container-manager-server.js'
7
7
  import { ContainerManagerCommands } from './container-manager-commands.js'
8
+ import * as config from './config.js'
8
9
 
9
10
  const [_, __, command, ...restArgs] = process.argv
10
11
 
@@ -26,7 +27,9 @@ Description=D
26
27
  After=network.target
27
28
 
28
29
  [Service]
29
- Environment=DEPLOYMENT_TOOLS_PORT=3000
30
+ Environment=DEPLOYMENT_TOOLS_DOMAIN=${config.domain}
31
+ Environment=DEPLOYMENT_TOOLS_SUBDOMAIN=${config.subdomain}
32
+ Environment=DEPLOYMENT_TOOLS_PORT=${config.port}
30
33
  User=root
31
34
  ExecStart=npx @ossy/deployment-tools start-container-manager
32
35
  Restart=on-failure