@stacksjs/ts-cloud 0.5.22 → 0.5.24
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/bin/cli.js +357 -357
- package/dist/index.js +7 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -84234,13 +84234,18 @@ function buildNginxVhostScript(options) {
|
|
|
84234
84234
|
var NGINX_WRAPPER = "/usr/local/bin/ts-cloud-nginx";
|
|
84235
84235
|
function buildNginxServiceScript(projectDir = "/opt/pantry") {
|
|
84236
84236
|
return [
|
|
84237
|
+
...buildPantryBootstrapScript(),
|
|
84238
|
+
...buildPantryInstallScript(["nginx.org"]),
|
|
84239
|
+
"if ! /opt/pantry/pantry/.bin/nginx -v >/dev/null 2>&1; then apt-get update -y && apt-get install -y nginx; fi",
|
|
84237
84240
|
"mkdir -p /etc/nginx/sites-available /etc/nginx/sites-enabled /var/log/nginx /var/lib/nginx/body /var/lib/nginx/proxy /var/lib/nginx/fastcgi /var/lib/nginx/uwsgi /var/lib/nginx/scgi",
|
|
84238
84241
|
"getent passwd www-data >/dev/null || useradd --system --no-create-home --shell /usr/sbin/nologin www-data",
|
|
84239
84242
|
"chown -R www-data:www-data /var/lib/nginx /var/log/nginx",
|
|
84240
84243
|
`cat > ${NGINX_WRAPPER} <<'TS_CLOUD_NGINXBIN_EOF'`,
|
|
84241
84244
|
"#!/bin/sh",
|
|
84242
84245
|
`eval "$(cd ${projectDir} && pantry env 2>/dev/null)"`,
|
|
84243
|
-
"NGINX_BIN=$(command -v nginx ||
|
|
84246
|
+
"NGINX_BIN=$(command -v nginx || true)",
|
|
84247
|
+
'if [ -z "$NGINX_BIN" ] || ! "$NGINX_BIN" -v >/dev/null 2>&1; then NGINX_BIN=/usr/sbin/nginx; fi',
|
|
84248
|
+
'if [ ! -x "$NGINX_BIN" ]; then NGINX_BIN=/opt/pantry/pantry/.bin/nginx; fi',
|
|
84244
84249
|
'exec "$NGINX_BIN" -c /etc/nginx/nginx.conf "$@"',
|
|
84245
84250
|
"TS_CLOUD_NGINXBIN_EOF",
|
|
84246
84251
|
`chmod +x ${NGINX_WRAPPER}`,
|
|
@@ -84325,6 +84330,7 @@ function buildNginxServiceScript(projectDir = "/opt/pantry") {
|
|
|
84325
84330
|
"WantedBy=multi-user.target",
|
|
84326
84331
|
"TS_CLOUD_NGINXUNIT_EOF",
|
|
84327
84332
|
"systemctl daemon-reload",
|
|
84333
|
+
"systemctl disable --now nginx 2>/dev/null || true",
|
|
84328
84334
|
"systemctl enable ts-cloud-nginx",
|
|
84329
84335
|
"ls /etc/nginx/sites-enabled/* >/dev/null 2>&1 && systemctl restart ts-cloud-nginx || true"
|
|
84330
84336
|
];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/ts-cloud",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.24",
|
|
5
5
|
"description": "A lightweight, performant infrastructure-as-code library and CLI for deploying both server-based (EC2) and serverless applications.",
|
|
6
6
|
"author": "Chris Breuer <chris@stacksjs.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -89,8 +89,8 @@
|
|
|
89
89
|
"test": "bun test"
|
|
90
90
|
},
|
|
91
91
|
"dependencies": {
|
|
92
|
-
"@ts-cloud/aws-types": "0.5.
|
|
93
|
-
"@ts-cloud/core": "0.5.
|
|
92
|
+
"@ts-cloud/aws-types": "0.5.24",
|
|
93
|
+
"@ts-cloud/core": "0.5.24",
|
|
94
94
|
"@stacksjs/ts-xml": "^0.1.0"
|
|
95
95
|
},
|
|
96
96
|
"devDependencies": {
|